/* =============================================================
   Ward 24 Digital Platform — Standardized Frontend UI (v1.6.0)
   Design system: unified tokens, typography, spacing, cards.
   ============================================================= */

:root{
  /* Brand */
  --w24-green:#0f8a3b;
  --w24-green-dark:#0a5e29;
  --w24-green-light:#e9f7ee;
  --w24-cream:#fbfaf6;
  --w24-accent:#f2811d;
  --w24-accent-dark:#c2610d;
  --w24-red:#dc2626;
  --w24-red-dark:#991b1b;
  --w24-blue:#2563eb;

  /* Neutral scale */
  --w24-ink:#0b1220;
  --w24-text:#111827;
  --w24-text-2:#374151;
  --w24-muted:#64748b;
  --w24-line:#eef1f5;
  --w24-border:#e5e7eb;
  --w24-bg:#fbfaf6;
  --w24-panel:#ffffff;

  /* Elevation */
  --w24-shadow-sm:0 1px 2px rgba(15,23,42,.06);
  --w24-shadow:0 4px 14px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --w24-shadow-lg:0 20px 40px -12px rgba(15,23,42,.14), 0 4px 10px rgba(15,23,42,.05);

  /* Radii */
  --w24-r-sm:10px;
  --w24-r-md:14px;
  --w24-r-lg:20px;
  --w24-r-xl:28px;
  --w24-r-pill:999px;

  /* Typography */
  --w24-font:"Hind Siliguri","SolaimanLipi",system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans Bengali",sans-serif;
}

/* --------- Reset & base ---------- */
.w24-root, .w24-hero, .w24-section, .w24-header, .w24-donor, .w24-dofa, .w24-person,
.w24-stat, .w24-form, .w24-panel, .w24-contact-card, .w24-bg-card, .w24-fc-card, .w24-fc-sum{
  font-family:var(--w24-font); color:var(--w24-text); box-sizing:border-box;
}
.w24-section *, .w24-hero *, .w24-header *{ box-sizing:border-box; }
.w24-container{ max-width:1200px; margin:0 auto; padding:0 20px; }

/* --------- Buttons ---------- */
.w24-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 22px; border-radius:var(--w24-r-pill);
  font-weight:600; font-size:15px; text-decoration:none;
  border:1px solid transparent; cursor:pointer; transition:transform .15s ease, box-shadow .15s ease, background .2s;
  font-family:inherit; line-height:1;
}
.w24-btn:hover{ transform:translateY(-1px); }
.w24-btn-primary{ background:var(--w24-green); color:#fff; box-shadow:0 8px 18px rgba(15,138,59,.25); }
.w24-btn-primary:hover{ background:var(--w24-green-dark); }
.w24-btn-accent{ background:var(--w24-accent); color:#fff; box-shadow:0 8px 18px rgba(242,129,29,.25); }
.w24-btn-accent:hover{ background:var(--w24-accent-dark); }
.w24-btn-ghost{ background:rgba(255,255,255,.12); color:#fff; border-color:rgba(255,255,255,.35); }
.w24-btn-ghost:hover{ background:rgba(255,255,255,.22); }

/* --------- Chips / badges ---------- */
.w24-chip{
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.15); color:#fff;
  padding:7px 14px; border-radius:var(--w24-r-pill);
  font-size:13px; font-weight:600; letter-spacing:.01em;
  backdrop-filter:blur(4px);
}
.w24-chip-dot{ width:6px; height:6px; border-radius:50%; background:var(--w24-accent); }
.w24-chip-light{ background:rgba(255,255,255,.16); color:#fff; }
.w24-sec-head .w24-chip{ background:var(--w24-green-light); color:var(--w24-green-dark); }

/* --------- Header ---------- */
.w24-header{ background:#fff; border-bottom:1px solid var(--w24-line); position:sticky; top:0; z-index:50; box-shadow:var(--w24-shadow-sm); }
.w24-header-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 20px; gap:20px; }
.w24-logo{ display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--w24-text); }
.w24-logo-badge{ width:44px; height:44px; border-radius:12px; background:linear-gradient(135deg,var(--w24-green),var(--w24-green-dark)); color:#fff; display:grid; place-items:center; font-weight:700; box-shadow:0 6px 14px rgba(15,138,59,.28); }
.w24-logo-text strong{ display:block; font-size:16px; line-height:1.2; }
.w24-logo-text small{ color:var(--w24-muted); font-size:12px; }
.w24-nav{ display:flex; gap:24px; }
.w24-nav a{ color:var(--w24-text-2); text-decoration:none; font-weight:500; font-size:15px; transition:color .15s; }
.w24-nav a:hover{ color:var(--w24-green); }
@media(max-width:900px){ .w24-nav{ display:none; } }

/* --------- Hero (home) ---------- */
.w24-hero{ position:relative; background:linear-gradient(135deg,#0a5e29 0%,#0f8a3b 55%,#12a04a 100%); color:#fff; padding:80px 0 100px; overflow:hidden; }
.w24-hero::before{ content:""; position:absolute; inset:0; opacity:.14; background-image:radial-gradient(circle at 1px 1px,#fff 1px,transparent 1px); background-size:22px 22px; pointer-events:none; }
.w24-hero > *{ position:relative; }
.w24-hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:center; }
@media(max-width:900px){ .w24-hero-grid{ grid-template-columns:1fr; } }
.w24-hero-title{ font-size:clamp(32px,5vw,58px); font-weight:800; line-height:1.12; margin:22px 0; letter-spacing:-.01em; }
.w24-accent{ color:var(--w24-accent); }
.w24-hero-desc{ font-size:17px; opacity:.94; max-width:540px; line-height:1.75; }
.w24-hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin:28px 0; }
.w24-hero-stats{ display:flex; gap:40px; padding-top:24px; border-top:1px solid rgba(255,255,255,.22); flex-wrap:wrap; }
.w24-hero-stats div{ display:flex; flex-direction:column; }
.w24-hero-stats strong{ font-size:28px; font-weight:800; }
.w24-hero-stats span{ font-size:13px; opacity:.85; }

.w24-hero-card{ background:#fff; border-radius:var(--w24-r-xl); overflow:hidden; box-shadow:0 30px 60px rgba(0,0,0,.28); position:relative; }
.w24-hero-card img, .w24-hero-card-ph{ width:100%; height:520px; object-fit:cover; display:block; }
.w24-hero-card-ph{ display:grid; place-items:center; background:#e5e7eb; color:#64748b; }
.w24-hero-card-info{ position:absolute; bottom:0; left:0; right:0; padding:26px; background:linear-gradient(transparent,rgba(0,0,0,.72)); color:#fff; }
.w24-hero-card-title{ color:var(--w24-accent); font-size:13px; text-transform:uppercase; letter-spacing:.08em; font-weight:700; }
.w24-hero-card-info strong{ display:block; font-size:22px; margin:6px 0 2px; }
.w24-hero-card-info small{ opacity:.85; }

/* --------- Section bands ---------- */
.w24-section{ background:var(--w24-bg); padding:0 0 80px; }
.w24-hero-band{ padding:64px 0 76px; color:#fff; margin-bottom:44px; position:relative; overflow:hidden; }
.w24-hero-band::before{ content:""; position:absolute; inset:0; opacity:.14; background-image:radial-gradient(circle at 1px 1px,#fff 1px,transparent 1px); background-size:24px 24px; pointer-events:none; }
.w24-hero-band > *{ position:relative; }
.w24-hero-band.w24-green{ background:linear-gradient(135deg,#0a5e29,#12a04a); }
.w24-hero-band.w24-red{ background:linear-gradient(135deg,#7f1d1d,#dc2626); }
.w24-section-title{ font-size:clamp(28px,4vw,42px); font-weight:800; margin:16px 0 12px; line-height:1.18; letter-spacing:-.01em; }
.w24-section-desc{ opacity:.94; max-width:640px; font-size:16px; line-height:1.75; margin:0; }
.w24-section-title.w24-dark{ color:var(--w24-text); }
.w24-section-desc.w24-dark{ color:var(--w24-muted); }
.w24-sec-head{ text-align:center; margin:56px 0 40px; }

/* --------- Tabs (dark on band) ---------- */
.w24-tabs{ display:inline-flex; background:rgba(255,255,255,.15); border-radius:var(--w24-r-pill); padding:4px; margin-top:22px; backdrop-filter:blur(6px); }
.w24-tabs button{ background:transparent; border:0; color:#fff; padding:9px 22px; border-radius:var(--w24-r-pill); cursor:pointer; font-family:inherit; font-weight:600; font-size:14px; transition:.15s; }
.w24-tabs button.active{ background:#fff; color:var(--w24-green-dark); box-shadow:0 4px 10px rgba(0,0,0,.12); }

/* --------- Generic card, input, label ---------- */
.w24-card{ background:var(--w24-panel); border:1px solid var(--w24-line); border-radius:var(--w24-r-lg); padding:22px; box-shadow:var(--w24-shadow); }
.w24-lbl{ display:block; font-weight:600; margin:14px 0 6px; font-size:13px; color:var(--w24-text-2); letter-spacing:.01em; }
.w24-input{
  width:100%; padding:11px 14px;
  border:1px solid var(--w24-border); border-radius:var(--w24-r-md);
  font-family:inherit; font-size:15px; background:#fff; color:var(--w24-text);
  transition:border-color .15s, box-shadow .15s;
  box-sizing:border-box;
}
.w24-input:focus{ outline:none; border-color:var(--w24-green); box-shadow:0 0 0 3px rgba(15,138,59,.18); }
.w24-input::placeholder{ color:#9aa4b2; }

.w24-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.w24-chips button{ background:#f1f5f9; color:var(--w24-text-2); border:0; padding:6px 12px; border-radius:var(--w24-r-pill); font-family:inherit; cursor:pointer; font-size:13px; font-weight:600; transition:.15s; }
.w24-chips button:hover{ background:#e2e8f0; }
.w24-chips button.active{ background:var(--w24-green); color:#fff; }

.w24-empty{ padding:60px 20px; text-align:center; color:var(--w24-muted); grid-column:1/-1; background:#fff; border:1px dashed var(--w24-border); border-radius:var(--w24-r-lg); }

/* --------- Database ---------- */
.w24-db-grid{ display:grid; grid-template-columns:300px 1fr; gap:28px; }
@media(max-width:900px){ .w24-db-grid{ grid-template-columns:1fr; } }
.w24-db-side .w24-card{ position:sticky; top:90px; }
.w24-db-count{ color:var(--w24-muted); margin-bottom:16px; font-size:14px; font-weight:600; }
.w24-db-count span{ color:var(--w24-green); font-weight:800; font-size:16px; }
.w24-db-cards{ display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:18px; }

.w24-person{ background:#fff; border:1px solid var(--w24-line); border-radius:var(--w24-r-lg); padding:18px; display:flex; gap:16px; box-shadow:var(--w24-shadow); transition:transform .15s, box-shadow .15s; }
.w24-person:hover{ transform:translateY(-2px); box-shadow:var(--w24-shadow-lg); }
.w24-person-photo{ position:relative; width:92px; flex:none; }
.w24-person-photo img, .w24-photo-ph{ width:92px; height:114px; object-fit:cover; border-radius:var(--w24-r-md); background:linear-gradient(135deg,#f1f5f9,#e2e8f0); }
.w24-blood-dot{ position:absolute; bottom:-8px; left:50%; transform:translateX(-50%); background:var(--w24-red); color:#fff; font-size:11px; font-weight:800; padding:4px 10px; border-radius:var(--w24-r-pill); box-shadow:0 4px 10px rgba(220,38,38,.35); letter-spacing:.02em; }
.w24-person-body{ flex:1; min-width:0; }
.w24-person-head small{ color:var(--w24-muted); font-size:12px; font-weight:600; }
.w24-person-head h4{ margin:2px 0 4px; font-size:17px; font-weight:700; line-height:1.25; }
.w24-voter{ color:var(--w24-green); font-size:12px; font-weight:700; background:var(--w24-green-light); padding:3px 9px; border-radius:var(--w24-r-pill); display:inline-block; }
.w24-person-fields{ list-style:none; padding:0; margin:12px 0 0; font-size:13px; color:var(--w24-text-2); line-height:1.7; }
.w24-person-fields li{ margin:2px 0; }
.w24-person-fields span{ color:var(--w24-muted); margin-right:4px; }
.w24-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.w24-tags span{ background:var(--w24-green-light); color:var(--w24-green-dark); padding:3px 10px; border-radius:var(--w24-r-pill); font-size:11px; font-weight:700; }

/* --------- Dashboard stats ---------- */
.w24-stat-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:18px; margin-top:-40px; position:relative; z-index:2; }
.w24-stat{ background:#fff; border-radius:var(--w24-r-lg); padding:22px; box-shadow:var(--w24-shadow); border:1px solid var(--w24-line); transition:transform .15s, box-shadow .15s; }
.w24-stat:hover{ transform:translateY(-3px); box-shadow:var(--w24-shadow-lg); }
.w24-stat-icon{ width:46px; height:46px; border-radius:var(--w24-r-md); display:grid; place-items:center; font-size:20px; margin-bottom:14px; box-shadow:0 6px 14px rgba(0,0,0,.08); }
.w24-stat strong{ font-size:32px; font-weight:800; display:block; line-height:1.1; letter-spacing:-.01em; }
.w24-stat span{ color:var(--w24-muted); font-size:14px; font-weight:600; }
.w24-stat em{ display:block; margin-top:10px; font-style:normal; font-size:12px; color:var(--w24-green); font-weight:600; }
.w24-c-green .w24-stat-icon{ background:linear-gradient(135deg,#dcfce7,#bbf7d0); color:#166534; }
.w24-c-orange .w24-stat-icon{ background:linear-gradient(135deg,#ffedd5,#fed7aa); color:#9a3412; }
.w24-c-red .w24-stat-icon{ background:linear-gradient(135deg,#fee2e2,#fecaca); color:#991b1b; }
.w24-c-blue .w24-stat-icon{ background:linear-gradient(135deg,#dbeafe,#bfdbfe); color:#1e40af; }
.w24-c-purple .w24-stat-icon{ background:linear-gradient(135deg,#ede9fe,#ddd6fe); color:#5b21b6; }

.w24-panel{ background:#fff; border-radius:var(--w24-r-lg); padding:26px; margin-top:26px; box-shadow:var(--w24-shadow); border:1px solid var(--w24-line); }
.w24-panel-head small{ color:var(--w24-muted); font-size:13px; font-weight:600; }
.w24-panel-head h3{ margin:4px 0 20px; font-size:22px; font-weight:800; }
.w24-bar-row{ display:grid; grid-template-columns:140px 1fr 110px; gap:14px; align-items:center; margin:12px 0; }
.w24-bar-label{ font-size:14px; font-weight:600; }
.w24-bar{ background:var(--w24-green-light); height:12px; border-radius:var(--w24-r-pill); overflow:hidden; }
.w24-bar-fill{ background:linear-gradient(90deg,#0f8a3b,#12a04a); height:100%; border-radius:var(--w24-r-pill); transition:width .6s ease; }
.w24-bar-val{ text-align:right; font-size:13px; color:var(--w24-muted); font-weight:600; }

/* --------- Blood ---------- */
.w24-blood-hero{ display:grid; grid-template-columns:1.1fr 1fr; gap:44px; align-items:center; }
@media(max-width:900px){ .w24-blood-hero{ grid-template-columns:1fr; } }
.w24-blood-groups{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.w24-bg-card{ background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.28); border-radius:var(--w24-r-md); padding:18px 12px; text-align:center; color:#fff; backdrop-filter:blur(6px); transition:transform .15s, background .2s; }
.w24-bg-card:hover{ transform:translateY(-2px); background:rgba(255,255,255,.22); }
.w24-bg-drop{ font-size:22px; margin-bottom:6px; }
.w24-bg-card strong{ display:block; font-size:22px; font-weight:800; }
.w24-bg-card span{ font-size:12px; opacity:.9; }

.w24-donor-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:24px; flex-wrap:wrap; }
.w24-donor-head small{ color:var(--w24-red); font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:.06em; }
.w24-donor-head h3{ margin:6px 0 0; font-size:24px; font-weight:800; }
.w24-donor-head .w24-input{ max-width:320px; }

.w24-donor-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:18px; }
.w24-donor{ position:relative; background:#fff; border:1px solid var(--w24-line); border-radius:var(--w24-r-lg); padding:20px; box-shadow:var(--w24-shadow); transition:transform .15s, box-shadow .15s; }
.w24-donor:hover{ transform:translateY(-2px); box-shadow:var(--w24-shadow-lg); }
.w24-donor-badge{ position:absolute; top:16px; right:16px; background:linear-gradient(135deg,#dc2626,#991b1b); color:#fff; font-weight:800; padding:6px 12px; border-radius:var(--w24-r-pill); font-size:13px; box-shadow:0 6px 14px rgba(220,38,38,.35); }
.w24-donor-top{ display:flex; gap:12px; align-items:center; }
.w24-donor-top img, .w24-donor-top .w24-photo-ph{ width:56px; height:56px; border-radius:50%; object-fit:cover; background:linear-gradient(135deg,#fee2e2,#fecaca); }
.w24-donor-top h4{ margin:0; font-size:16px; font-weight:700; }
.w24-donor-top small{ color:var(--w24-muted); font-size:12px; }
.w24-donor-meta{ list-style:none; padding:0; margin:14px 0; color:var(--w24-text-2); font-size:13px; line-height:1.8; }
.w24-donor-call{ display:inline-flex; align-items:center; gap:8px; background:var(--w24-green-light); color:var(--w24-green-dark); padding:9px 16px; border-radius:var(--w24-r-pill); text-decoration:none; font-weight:700; font-size:14px; transition:.15s; }
.w24-donor-call:hover{ background:var(--w24-green); color:#fff; }

/* --------- Dofa (10-point) ---------- */
.w24-dofa-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:18px; }
.w24-dofa{ background:#fff; border:1px solid var(--w24-line); border-radius:var(--w24-r-lg); padding:24px; box-shadow:var(--w24-shadow); transition:transform .15s, box-shadow .15s; position:relative; overflow:hidden; }
.w24-dofa::before{ content:""; position:absolute; top:0; left:0; right:0; height:4px; background:linear-gradient(90deg,var(--w24-green),var(--w24-accent)); }
.w24-dofa:hover{ transform:translateY(-3px); box-shadow:var(--w24-shadow-lg); }
.w24-dofa-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.w24-dofa-num{ background:linear-gradient(135deg,var(--w24-green),var(--w24-green-dark)); color:#fff; width:40px; height:40px; border-radius:var(--w24-r-md); display:grid; place-items:center; font-weight:800; box-shadow:0 6px 14px rgba(15,138,59,.25); }
.w24-dofa-icon{ font-size:28px; }
.w24-dofa h4{ margin:4px 0 8px; font-size:18px; font-weight:700; line-height:1.35; }
.w24-dofa p{ color:var(--w24-muted); font-size:14px; line-height:1.7; margin:0; }

/* --------- Form ---------- */
.w24-form{ max-width:760px; margin:0 auto; background:#fff; border:1px solid var(--w24-line); border-radius:var(--w24-r-xl); padding:34px; box-shadow:var(--w24-shadow-lg); }
.w24-form label{ display:block; font-weight:600; font-size:13px; color:var(--w24-text-2); margin-bottom:14px; letter-spacing:.01em; }
.w24-form label input, .w24-form label textarea{ margin-top:6px; }
.w24-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:600px){ .w24-form-row{ grid-template-columns:1fr; } }
.w24-form-msg{ margin-top:14px; font-size:14px; font-weight:600; }
.w24-form-msg.ok{ color:var(--w24-green); }
.w24-form-msg.err{ color:var(--w24-red); }

/* --------- Contact ---------- */
.w24-contact-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; max-width:960px; margin:0 auto; }
.w24-contact-card{ background:#fff; border:1px solid var(--w24-line); border-radius:var(--w24-r-lg); padding:28px 24px; text-align:center; box-shadow:var(--w24-shadow); transition:transform .15s, box-shadow .15s; }
.w24-contact-card:hover{ transform:translateY(-3px); box-shadow:var(--w24-shadow-lg); }
.w24-contact-card span{ font-size:34px; display:block; margin-bottom:12px; }
.w24-contact-card strong{ display:block; margin-bottom:6px; font-size:16px; font-weight:700; }
.w24-contact-card a{ color:var(--w24-green); text-decoration:none; font-weight:600; }
.w24-contact-card a:hover{ color:var(--w24-green-dark); }

/* =============================================================
   Facilities module — visual parity with the rest
   ============================================================= */
.w24-facilities .w24-hero-band{ background:linear-gradient(135deg,#0a5e29,#12a04a); }

.w24-fc-summary{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:-48px 0 44px; position:relative; z-index:2; }
@media(max-width:800px){ .w24-fc-summary{ grid-template-columns:1fr; margin-top:20px; } }
.w24-fc-sum{
  text-align:left; background:#fff; border:1px solid var(--w24-line);
  border-radius:var(--w24-r-lg); padding:24px;
  box-shadow:var(--w24-shadow); cursor:pointer; font-family:inherit; position:relative;
  transition:transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.w24-fc-sum:hover{ transform:translateY(-3px); box-shadow:var(--w24-shadow-lg); }
.w24-fc-sum::after{ content:''; position:absolute; inset:0; border-radius:inherit; border:2px solid transparent; transition:border-color .2s ease; pointer-events:none; }
.w24-fc-sum.is-active.w24-fc-green{ background-color:var(--w24-green-light); }
.w24-fc-sum.is-active.w24-fc-green::after{ border-color:var(--w24-green); }
.w24-fc-sum.is-active.w24-fc-orange{ background-color:rgba(249,115,22,.1); }
.w24-fc-sum.is-active.w24-fc-orange::after{ border-color:var(--w24-accent); }
.w24-fc-sum.is-active.w24-fc-blue{ background-color:rgba(59,130,246,.1); }
.w24-fc-sum.is-active.w24-fc-blue::after{ border-color:var(--w24-blue); }
.w24-fc-sum-ico{ width:56px; height:56px; border-radius:var(--w24-r-md); display:grid; place-items:center; color:#fff; box-shadow:0 8px 18px rgba(0,0,0,.15); margin-bottom:16px; }
.w24-fc-sum-num{ font-size:44px; font-weight:800; line-height:1; color:var(--w24-text); letter-spacing:-.02em; }
.w24-fc-sum-lbl{ font-size:18px; font-weight:800; margin-top:8px; color:var(--w24-text); }
.w24-fc-sum-sub{ font-size:13px; color:var(--w24-muted); margin-top:2px; }

/* Type gradients */
.w24-fc-green .w24-fc-sum-ico,   .w24-fc-green.w24-fc-card .w24-fc-icon{ background:linear-gradient(135deg,#10b981,#0d9488); color:#fff; }
.w24-fc-orange .w24-fc-sum-ico,  .w24-fc-orange.w24-fc-card .w24-fc-icon{ background:linear-gradient(135deg,#f97316,#ea580c); color:#fff; }
.w24-fc-blue .w24-fc-sum-ico,    .w24-fc-blue.w24-fc-card .w24-fc-icon{ background:linear-gradient(135deg,#3b82f6,#2563eb); color:#fff; }

.w24-fc-chip{ background:var(--w24-green-light); color:var(--w24-green-dark); }
.w24-fc-chip.w24-fc-green{ background:rgba(16,185,129,.14); color:#047857; }
.w24-fc-chip.w24-fc-orange{ background:rgba(249,115,22,.14); color:#c2410c; }
.w24-fc-chip.w24-fc-blue{ background:rgba(59,130,246,.14); color:#1d4ed8; }

.w24-fc-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:20px; flex-wrap:wrap; margin:44px 0 24px; }
.w24-fc-title{ font-size:clamp(24px,3vw,32px); font-weight:800; margin:12px 0 4px; color:var(--w24-text); letter-spacing:-.01em; }
.w24-fc-count{ color:var(--w24-muted); font-size:14px; margin:0; }
.w24-fc-search{ position:relative; min-width:280px; }
.w24-fc-search .w24-input{ padding-left:40px; border-radius:var(--w24-r-pill); background:#fff; }
.w24-fc-search-ico{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--w24-muted); font-size:14px; pointer-events:none; }

.w24-fc-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:18px; }
.w24-fc-card{ background:#fff; border:1px solid var(--w24-line); border-radius:var(--w24-r-lg); padding:22px; box-shadow:var(--w24-shadow); transition:transform .15s, box-shadow .15s; }
.w24-fc-card:hover{ transform:translateY(-2px); box-shadow:var(--w24-shadow-lg); }
.w24-fc-card-head{ display:flex; gap:14px; align-items:flex-start; }
.w24-fc-icon{ width:52px; height:52px; border-radius:var(--w24-r-md); display:grid; place-items:center; flex:none; box-shadow:0 6px 14px rgba(0,0,0,.10); }
.w24-fc-meta{ flex:1; min-width:0; }
.w24-fc-badges{ display:flex; gap:6px; align-items:center; margin-bottom:6px; flex-wrap:wrap; }
.w24-fc-badge-num{ font-size:12px; color:var(--w24-muted); font-weight:700; background:#f1f5f9; padding:2px 8px; border-radius:var(--w24-r-pill); }
.w24-fc-badge-status{ font-size:11px; background:rgba(16,185,129,.14); color:#047857; padding:3px 10px; border-radius:var(--w24-r-pill); font-weight:700; }
.w24-fc-name{ margin:2px 0 4px; font-size:17px; font-weight:700; color:var(--w24-text); line-height:1.3; }
.w24-fc-addr{ font-size:13px; color:var(--w24-muted); display:flex; align-items:center; gap:4px; }
.w24-fc-details{ list-style:none; margin:14px 0 0; padding:14px 0 0; border-top:1px dashed var(--w24-border); font-size:13px; color:var(--w24-text-2); line-height:1.75; }
.w24-fc-details li{ margin:3px 0; }
.w24-fc-details span{ color:var(--w24-muted); margin-right:4px; font-weight:600; }
.w24-fc-details a{ color:var(--w24-green); text-decoration:none; font-weight:600; }
.w24-fc-details a:hover{ color:var(--w24-green-dark); }
.w24-fc-empty{ text-align:center; padding:60px 20px; color:var(--w24-muted); background:#fff; border:1px dashed var(--w24-border); border-radius:var(--w24-r-lg); }

/* =============================================================
   Small print / footer utilities
   ============================================================= */
.w24-section + .w24-section{ padding-top:0; }

/* =============================================================
   v1.5.0 — Professional polish & full device responsiveness
   Desktop ≥1280 · Laptop 1024–1279 · Tablet 641–1023 · Mobile ≤640
   ============================================================= */

/* --- Global refinements --- */
html{ scroll-behavior:smooth; }
.w24-root, .w24-section, .w24-hero, .w24-header{ -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility; }
.w24-btn:focus-visible,
.w24-input:focus-visible,
.w24-nav a:focus-visible,
.w24-tabs button:focus-visible,
.w24-chips button:focus-visible,
.w24-fc-sum:focus-visible{
  outline:3px solid rgba(15,138,59,.35); outline-offset:2px; border-radius:var(--w24-r-md);
}
.w24-btn{ min-height:44px; } /* touch target */
.w24-btn:active{ transform:translateY(0); }
.w24-btn-primary{ background-image:linear-gradient(135deg,#12a04a,#0f8a3b); }
.w24-btn-primary:hover{ background-image:linear-gradient(135deg,#0f8a3b,#0a5e29); box-shadow:0 12px 24px rgba(15,138,59,.32); }
.w24-btn-accent{ background-image:linear-gradient(135deg,#ffa04d,#f2811d); }
.w24-btn-accent:hover{ background-image:linear-gradient(135deg,#f2811d,#c2610d); box-shadow:0 12px 24px rgba(242,129,29,.32); }

/* Subtle entrance for cards */
@media (prefers-reduced-motion: no-preference){
  .w24-person, .w24-donor, .w24-dofa, .w24-fc-card, .w24-contact-card, .w24-bg-card, .w24-fc-sum{
    animation:w24-fade-up .5s ease both;
  }
  @keyframes w24-fade-up{ from{ opacity:0; transform:translateY(10px);} to{ opacity:1; transform:none;} }
}
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation:none !important; transition:none !important; }
}

/* --- Mobile nav toggle (hamburger) --- */
.w24-nav-toggle{
  display:none; width:44px; height:44px; border:1px solid var(--w24-line); background:#fff;
  border-radius:var(--w24-r-md); cursor:pointer; align-items:center; justify-content:center;
  padding:0; color:var(--w24-text);
}
.w24-nav-toggle span{ display:block; width:20px; height:2px; background:currentColor; position:relative; }
.w24-nav-toggle span::before,
.w24-nav-toggle span::after{ content:""; position:absolute; left:0; width:20px; height:2px; background:currentColor; transition:transform .2s ease, top .2s ease; }
.w24-nav-toggle span::before{ top:-6px; }
.w24-nav-toggle span::after{ top:6px; }
.w24-nav-toggle[aria-expanded="true"] span{ background:transparent; }
.w24-nav-toggle[aria-expanded="true"] span::before{ top:0; transform:rotate(45deg); }
.w24-nav-toggle[aria-expanded="true"] span::after{ top:0; transform:rotate(-45deg); }

/* --- Laptop (≤1279) --- */
@media (max-width:1279px){
  .w24-container{ max-width:1100px; }
  .w24-hero{ padding:70px 0 90px; }
  .w24-hero-card img, .w24-hero-card-ph{ height:460px; }
}

/* --- Tablet (≤1023) --- */
@media (max-width:1023px){
  .w24-container{ padding:0 24px; }
  .w24-hero{ padding:60px 0 72px; }
  .w24-hero-grid{ gap:40px; }
  .w24-hero-card img, .w24-hero-card-ph{ height:400px; }
  .w24-hero-band{ padding:52px 0 64px; margin-bottom:32px; }
  .w24-sec-head{ margin:44px 0 32px; }
  .w24-section{ padding:0 0 64px; }
  .w24-blood-groups{ grid-template-columns:repeat(4,1fr); }
  .w24-fc-summary{ grid-template-columns:repeat(3,1fr); margin-top:-36px; }
  .w24-db-cards, .w24-fc-grid, .w24-donor-grid{ grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); }
  .w24-dofa-grid{ grid-template-columns:repeat(2,1fr); }
}

/* --- Mobile-large (≤900) — nav collapses --- */
@media (max-width:900px){
  .w24-nav-toggle{ display:inline-flex; }
  .w24-nav{
    display:none; position:absolute; top:100%; left:0; right:0;
    background:#fff; border-top:1px solid var(--w24-line);
    flex-direction:column; padding:12px 20px; gap:4px;
    box-shadow:var(--w24-shadow); z-index:60;
  }
  .w24-nav.is-open{ display:flex; }
  .w24-nav a{ padding:12px 4px; border-radius:var(--w24-r-sm); font-size:16px; }
  .w24-nav a:hover{ background:var(--w24-green-light); color:var(--w24-green-dark); padding-left:12px; }
  .w24-header{ position:relative; }
  .w24-header-inner{ position:relative; }
  .w24-hero-card img, .w24-hero-card-ph{ height:340px; }
  .w24-blood-hero{ gap:28px; }
  .w24-donor-head .w24-input{ max-width:100%; width:100%; }
  .w24-donor-head{ align-items:stretch; }
  .w24-fc-head{ margin:32px 0 20px; }
  .w24-fc-search{ min-width:100%; width:100%; }
  .w24-db-side .w24-card{ position:static; }
}

/* --- Mobile (≤640) --- */
@media (max-width:640px){
  .w24-container{ padding:0 16px; }
  .w24-header-inner{ padding:12px 16px; gap:10px; }
  .w24-logo-badge{ width:40px; height:40px; border-radius:10px; }
  .w24-logo-text strong{ font-size:15px; }
  .w24-logo-text small{ font-size:11px; }

  .w24-hero{ padding:44px 0 56px; }
  .w24-hero-title{ margin:16px 0; font-size:clamp(26px,7vw,36px); }
  .w24-hero-desc{ font-size:15px; line-height:1.7; }
  .w24-hero-cta{ gap:10px; margin:22px 0; }
  .w24-hero-cta .w24-btn{ flex:1 1 100%; justify-content:center; }
  .w24-hero-stats{ gap:24px; padding-top:20px; }
  .w24-hero-stats strong{ font-size:24px; }
  .w24-hero-card{ border-radius:var(--w24-r-lg); }
  .w24-hero-card img, .w24-hero-card-ph{ height:260px; }
  .w24-hero-card-info{ padding:18px; }
  .w24-hero-card-info strong{ font-size:18px; }

  .w24-hero-band{ padding:40px 0 48px; margin-bottom:24px; }
  .w24-section-title{ font-size:clamp(22px,6vw,30px); }
  .w24-section-desc{ font-size:14px; line-height:1.7; }
  .w24-sec-head{ margin:32px 0 24px; }
  .w24-section{ padding:0 0 48px; }

  .w24-tabs{ width:100%; display:flex; }
  .w24-tabs button{ flex:1; padding:9px 12px; font-size:13px; }

  /* Cards single column */
  .w24-db-cards, .w24-fc-grid, .w24-donor-grid, .w24-dofa-grid{ grid-template-columns:1fr; gap:14px; }
  .w24-contact-grid{ grid-template-columns:1fr; }

  /* Blood groups: 2 columns on phones */
  .w24-blood-groups{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .w24-bg-card{ padding:14px 10px; }
  .w24-bg-card strong{ font-size:18px; }

  /* Facilities summary: stack */
  .w24-fc-summary{ grid-template-columns:1fr; margin:-24px 0 28px; gap:12px; }
  .w24-fc-sum{ padding:18px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:14px; }
  .w24-fc-sum-ico{ margin:0; width:48px; height:48px; }
  .w24-fc-sum-num{ font-size:32px; }
  .w24-fc-sum-lbl{ font-size:15px; margin-top:0; }
  .w24-fc-sum-sub{ display:none; }

  /* Person card: image on top, content below */
  .w24-person{ flex-direction:row; padding:14px; gap:12px; }
  .w24-person-photo, .w24-person-photo img, .w24-photo-ph{ width:72px; }
  .w24-person-photo img, .w24-photo-ph{ height:92px; }

  /* Donor tighter */
  .w24-donor{ padding:16px; }
  .w24-donor-badge{ top:12px; right:12px; padding:5px 10px; font-size:12px; }

  /* Dofa tighter */
  .w24-dofa{ padding:20px; }
  .w24-dofa h4{ font-size:16px; }

  /* Form */
  .w24-form{ padding:22px; border-radius:var(--w24-r-lg); }
  .w24-form-row{ gap:12px; }

  /* Facilities card */
  .w24-fc-card{ padding:18px; }
  .w24-fc-name{ font-size:16px; }

  /* Contact card */
  .w24-contact-card{ padding:22px 18px; }
}

/* --- Small mobile (≤380) --- */
@media (max-width:380px){
  .w24-container{ padding:0 12px; }
  .w24-hero-title{ font-size:24px; }
  .w24-hero-card img, .w24-hero-card-ph{ height:220px; }
  .w24-blood-groups{ grid-template-columns:repeat(2,1fr); }
}

/* --- Large desktop (≥1440) --- */
@media (min-width:1440px){
  .w24-container{ max-width:1280px; }
  .w24-hero{ padding:100px 0 120px; }
  .w24-hero-card img, .w24-hero-card-ph{ height:560px; }
}

/* --- Print --- */
@media print{
  .w24-header, .w24-nav-toggle, .w24-hero-cta, .w24-tabs, .w24-fc-search, .w24-donor-call{ display:none !important; }
  .w24-hero, .w24-hero-band{ background:none !important; color:#000 !important; }
  .w24-person, .w24-donor, .w24-dofa, .w24-fc-card{ break-inside:avoid; box-shadow:none; border:1px solid #ccc; }
}

/* =============================================================
   v1.6.0 — Advanced visual polish & cross-device refinement
   Selection, scrollbars, glass header, motion, micro-interactions
   ============================================================= */

/* --- Selection & scrollbar --- */
::selection{ background:var(--w24-green); color:#fff; }
.w24-root, .w24-section, .w24-hero{ scrollbar-color:var(--w24-green) var(--w24-line); scrollbar-width:thin; }
.w24-root ::-webkit-scrollbar{ width:10px; height:10px; }
.w24-root ::-webkit-scrollbar-track{ background:var(--w24-line); }
.w24-root ::-webkit-scrollbar-thumb{ background:var(--w24-green); border-radius:var(--w24-r-pill); border:2px solid var(--w24-line); }
.w24-root ::-webkit-scrollbar-thumb:hover{ background:var(--w24-green-dark); }

/* --- Sticky header: glass + scrolled state --- */
.w24-header{
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  transition:box-shadow .25s ease, background-color .25s ease, padding .25s ease;
}
.w24-header.is-scrolled{ box-shadow:var(--w24-shadow); background:rgba(255,255,255,.96); }
.w24-logo-badge{ transition:transform .25s ease; }
.w24-logo:hover .w24-logo-badge{ transform:rotate(-6deg) scale(1.05); }

/* --- Animated underline nav links --- */
.w24-nav a{ position:relative; padding-bottom:2px; }
.w24-nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:2px;
  background:linear-gradient(90deg,var(--w24-green),var(--w24-accent));
  border-radius:var(--w24-r-pill); transition:right .22s ease;
}
.w24-nav a:hover::after, .w24-nav a.is-current::after{ right:0; }
.w24-nav a.is-current{ color:var(--w24-green-dark); font-weight:700; }

/* --- Buttons: shine sweep + refined depth --- */
.w24-btn{ position:relative; overflow:hidden; isolation:isolate; }
.w24-btn::before{
  content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit;
  background:linear-gradient(115deg,transparent 20%,rgba(255,255,255,.35) 40%,transparent 60%);
  transform:translateX(-120%); transition:transform .5s ease;
}
.w24-btn:hover::before{ transform:translateX(120%); }
.w24-btn-primary:active, .w24-btn-accent:active{ transform:translateY(0) scale(.98); }
.w24-btn-outline{
  background:#fff; color:var(--w24-green); border-color:var(--w24-green);
}
.w24-btn-outline:hover{ background:var(--w24-green-light); }

/* --- Hero: layered depth blobs (decorative, ignored by AT) --- */
.w24-hero::after{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(420px 320px at 88% 12%, rgba(242,129,29,.22), transparent 60%),
    radial-gradient(360px 300px at 6% 92%, rgba(255,255,255,.12), transparent 65%);
}
.w24-hero-card{ transition:transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease; }
.w24-hero-card:hover{ transform:translateY(-6px); box-shadow:0 40px 70px rgba(0,0,0,.32); }

/* --- Cards: unified refined hover system (desktop only, pointer:fine) --- */
@media (hover:hover) and (pointer:fine){
  .w24-person, .w24-donor, .w24-dofa, .w24-fc-card, .w24-contact-card, .w24-stat{
    transition:transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
  }
  .w24-person:hover, .w24-donor:hover, .w24-dofa:hover, .w24-fc-card:hover, .w24-contact-card:hover, .w24-stat:hover{
    transform:translateY(-4px); border-color:rgba(15,138,59,.25);
  }
  .w24-bg-card:hover{ transform:translateY(-4px) scale(1.02); }
}

/* --- Scroll-reveal (progressive enhancement; JS adds .w24-in-view) --- */
@media (prefers-reduced-motion: no-preference){
  .w24-reveal{ opacity:0; transform:translateY(18px); transition:opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
  .w24-reveal.w24-in-view{ opacity:1; transform:none; }
}

/* --- Section divider flourish --- */
.w24-sec-head::after{
  content:""; display:block; width:64px; height:4px; margin:16px auto 0;
  background:linear-gradient(90deg,var(--w24-green),var(--w24-accent)); border-radius:var(--w24-r-pill);
}

/* --- Stat numbers: tabular alignment for live counters --- */
.w24-stat strong, .w24-fc-sum-num, .w24-hero-stats strong{ font-variant-numeric:tabular-nums; }

/* --- Skeleton loading utility (optional, for async-populated grids) --- */
.w24-skel{ position:relative; overflow:hidden; background:#eef1f5; border-radius:var(--w24-r-md); color:transparent !important; }
.w24-skel::after{
  content:""; position:absolute; inset:0; transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.65),transparent);
  animation:w24-shimmer 1.4s infinite;
}
@keyframes w24-shimmer{ 100%{ transform:translateX(100%); } }
@media (prefers-reduced-motion: reduce){ .w24-skel::after{ animation:none; } }

/* --- Back-to-top button --- */
.w24-top{
  position:fixed; right:20px; bottom:20px; width:46px; height:46px; border-radius:50%;
  background:var(--w24-green); color:#fff; border:0; display:grid; place-items:center;
  box-shadow:0 10px 22px rgba(15,138,59,.35); cursor:pointer; z-index:70;
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s;
}
.w24-top.is-visible{ opacity:1; visibility:visible; transform:none; }
.w24-top:hover{ background:var(--w24-green-dark); }

/* --- Ultra-wide desktop (≥1680) --- */
@media (min-width:1680px){
  .w24-container{ max-width:1400px; }
  .w24-hero-title{ font-size:clamp(40px,4vw,64px); }
}

/* --- Small laptop / large tablet fine-tune (768–1023) --- */
@media (min-width:768px) and (max-width:1023px){
  .w24-stat-grid{ grid-template-columns:repeat(3,1fr); }
  .w24-fc-summary{ grid-template-columns:repeat(3,1fr); }
}

/* --- Landscape phones (short height) --- */
@media (max-width:900px) and (max-height:420px) and (orientation:landscape){
  .w24-hero{ padding:32px 0 40px; }
  .w24-hero-card img, .w24-hero-card-ph{ height:220px; }
}

/* --- Foldables / very small (≤340) --- */
@media (max-width:340px){
  .w24-hero-title{ font-size:22px; }
  .w24-btn{ padding:11px 16px; font-size:14px; }
  .w24-fc-sum-num{ font-size:26px; }
}

/* --- High-DPI: crisper hairlines --- */
@media (min-resolution:2dppx){
  .w24-card, .w24-person, .w24-donor, .w24-dofa, .w24-fc-card, .w24-contact-card{ border-width:.5px; }
}
