*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: #fafbfc; color: #1e293b; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.3s;
}
.navbar.solid {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.05);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.nav-logo-text { font-weight: 700; font-size: 15px; color: #fff; transition: color 0.3s; }
.navbar.solid .nav-logo-text { color: #0f172a; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s; }
.navbar.solid .nav-a { color: #64748b; }
.nav-a:hover { color: #fff; }
.navbar.solid .nav-a:hover { color: #0f172a; }
.nav-cta {
  padding: 8px 22px; border-radius: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.navbar.solid .nav-cta { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.nav-cta:hover { background: rgba(255,255,255,0.2); }
.navbar.solid .nav-cta:hover { background: #1d4ed8; border-color: #1d4ed8; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -15px; left: -15px; right: -15px; bottom: -15px;
  background: linear-gradient(145deg, rgba(10,22,40,0.82), rgba(18,34,68,0.75) 30%, rgba(26,60,110,0.7) 60%, rgba(34,86,165,0.65) 100%),
              url('../../assets/barangay hall.jpg') center/cover no-repeat;
  filter: blur(6px);
  z-index: 1;
}

/* Floating circles */
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 2; }
.hero-orb.a { width: 500px; height: 500px; background: rgba(59,130,246,0.12); top: -150px; left: -100px; }
.hero-orb.b { width: 400px; height: 400px; background: rgba(139,92,246,0.08); bottom: -100px; right: -80px; }
.hero-orb.c { width: 250px; height: 250px; background: rgba(34,197,94,0.06); top: 40%; left: 60%; }
/* Bottom fade */
.hero::after { content:''; position:absolute; bottom:0; left:0; right:0; height:140px; background:linear-gradient(to top, #fafbfc, transparent); z-index:2; }

.hero-content { position: relative; z-index: 3; max-width: 800px; padding: 120px 24px 80px; }
.hero-seal {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  display: block; margin: 0 auto 30px;
  animation: hero-seal-in .7s cubic-bezier(.34,1.4,.64,1) both, sealFloat 5s ease-in-out .9s infinite;
}
@keyframes hero-seal-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@keyframes sealFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero-tag {
  display: inline-block;
  padding: 6px 18px; border-radius: 20px;
  background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.2);
  color: #93c5fd; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 64px; font-weight: 900; color: #fff;
  line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 20px; color: rgba(255,255,255,0.65); line-height: 1.6;
  max-width: 650px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 16px 36px; border-radius: 12px; font-family: 'Outfit', sans-serif;
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; cursor: pointer;
}
.btn-white { background: #fff; color: #1e3a5f; }
.btn-white:hover { background: #e0f2fe; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-outline { background: transparent; color: rgba(255,255,255,0.8); border: 1.5px solid rgba(255,255,255,0.2); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

/* ============ SECTION ============ */
.section { max-width: 1100px; margin: 0 auto; padding: 80px 24px; }
.section-eyebrow {
  font-size: 11px; font-weight: 700; color: #3b82f6;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px;
}
.section-heading {
  font-size: 34px; font-weight: 800; color: #0f172a;
  letter-spacing: -0.8px; margin-bottom: 6px;
}
.section-desc {
  font-size: 15px; color: #64748b; margin-bottom: 40px; max-width: 500px;
}

/* ============ EVENT CARDS ============ */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.ev-card {
  background: #fff; border-radius: 14px; border: 1px solid #e8ecf1;
  overflow: hidden; transition: transform 0.25s cubic-bezier(.22,1,.36,1), box-shadow 0.25s;
  display: flex; flex-direction: column; cursor: pointer;
}
.ev-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.07); }
.ev-card:hover .btn-join { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.ev-card:active { transform: translateY(-1px) scale(.99); transition-duration: .08s; }
.ev-card:focus-visible { outline: 3px solid #3b82f6; outline-offset: 3px; }
.ev-accent { height: 4px; }
.ev-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.ev-date {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f1f5f9; padding: 4px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 14px;
  align-self: flex-start;
}
.ev-title { font-size: 18px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.ev-meta { font-size: 12px; color: #94a3b8; line-height: 1.7; }
.ev-meta span { display: block; }
.ev-cat {
  display: inline-block; margin-top: 14px;
  padding: 3px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
/* Category colours */
.c-hw { background: #dcfce7; color: #15803d; }
.c-ed { background: #dbeafe; color: #1d4ed8; }
.c-en { background: #d1fae5; color: #047857; }
.c-lv { background: #ffedd5; color: #c2410c; }
.c-sr { background: #f3e8ff; color: #7c3aed; }
.c-dp { background: #fee2e2; color: #b91c1c; }
.c-df { background: #f1f5f9; color: #475569; }

/* Join Button inside Card */
.ev-action-box { padding: 16px 24px 20px; margin-top: auto; border-top: 1px solid #f1f5f9; }
.btn-join {
  width: 100%; display: flex; justify-content: center;
  background: #f8fafc; color: #3b82f6; border: 1px solid #cbd5e1;
  padding: 10px; border-radius: 8px; font-weight: 700; font-size: 13px;
  transition: all 0.2s; cursor: pointer; text-decoration: none;
}
.btn-join:hover { background: #3b82f6; color: #fff; border-color: #3b82f6; }

.empty-state {
  text-align: center; padding: 60px 20px; color: #94a3b8;
}
.empty-icon { font-size: 52px; margin-bottom: 10px; }

/* ============ IMPACT CARDS ============ */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.imp-card {
  background: #fff; border-radius: 14px; border: 1px solid #e8ecf1;
  padding: 26px; transition: transform 0.25s, box-shadow 0.25s;
}
.imp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.06); }
.imp-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; background: #dcfce7; color: #15803d; margin-bottom: 14px; }
.imp-title { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.imp-date { font-size: 12px; color: #94a3b8; margin-bottom: 16px; }
.imp-row { display: flex; gap: 12px; }
.imp-stat { flex: 1; text-align: center; padding: 12px 8px; background: #f8fafc; border-radius: 10px; }
.imp-stat-val { font-size: 22px; font-weight: 800; color: #1e293b; }
.imp-stat-lbl { font-size: 10px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px; }

/* ============ ANNOUNCEMENTS ============ */
.ann-list { display: flex; flex-direction: column; gap: 14px; }
.ann-card {
  background: #fff; border-radius: 12px; border: 1px solid #e8ecf1;
  padding: 20px 24px; border-left: 4px solid #3b82f6;
  transition: transform 0.2s;
}
.ann-card:hover { transform: translateX(4px); }
.ann-card.warn { border-left-color: #f59e0b; }
.ann-card.success { border-left-color: #22c55e; } /* green = good news, as the posting form says; information keeps the blue edge (2026-11-08) */
.ann-title { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.ann-body { font-size: 13px; color: #64748b; line-height: 1.6; }
.ann-date { font-size: 11px; color: #94a3b8; margin-top: 6px; }

/* ============ EVENT MODAL ============ */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6);
  z-index: 200; align-items: center; justify-content: center; backdrop-filter: blur(4px);
  padding: 20px;
}
.modal-overlay.open { display: flex; animation: overlay-in .2s ease-out; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
.modal-overlay.closing { animation: overlay-out .16s ease-in forwards; }
.modal-overlay.closing .modal-content { animation: modal-out .16s ease-in forwards; }
@keyframes overlay-out { to { opacity: 0; } }
@keyframes modal-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-content {
  background: #fff; border-radius: 16px; width: 100%; max-width: 500px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); position: relative;
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden; display: flex; flex-direction: column; max-height: 90vh;
}
@keyframes modalSlideIn {
  0% { transform: translateY(20px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-header { padding: 24px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: flex-start; }
.modal-header-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #3b82f6; }
.modal-close { background: none; border: none; font-size: 24px; color: #94a3b8; cursor: pointer; transition: color 0.2s; line-height: 1; }
.modal-close:hover { color: #0f172a; }
.m-title { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 6px; line-height: 1.2; }
.m-cat { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; background: #f1f5f9; color: #475569; }

.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.m-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; background: #f8fafc; padding: 16px; border-radius: 12px; border: 1px solid #f1f5f9; }
.m-meta-item { display: flex; flex-direction: column; gap: 4px; }
.m-meta-lbl { font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.m-meta-val { font-size: 13px; font-weight: 600; color: #334155; }

.m-section-lbl { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 8px; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px; }
.m-desc { font-size: 13.5px; color: #475569; line-height: 1.6; margin-bottom: 24px; white-space: pre-wrap; }

.m-req-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 16px; margin-bottom: 24px; }
.m-req-title { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #b45309; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.m-req-text { font-size: 13px; color: #92400e; line-height: 1.5; white-space: pre-wrap; }

.modal-footer { padding: 20px 24px; border-top: 1px solid #f1f5f9; display: flex; justify-content: flex-end; gap: 12px; background: #f8fafc; }
.btn-cancel { padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 13px; color: #475569; background: #fff; border: 1px solid #cbd5e1; cursor: pointer; transition: all 0.2s; }
.btn-cancel:hover { background: #f1f5f9; }
.btn-auth-join { padding: 10px 24px; border-radius: 8px; font-weight: 700; font-size: 13px; color: #fff; background: #3b82f6; border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.btn-auth-join:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.2); }

/* ============ FOOTER ============ */
.footer {
  background: #0f172a; padding: 56px 32px 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.footer-brand-name { font-size: 16px; font-weight: 700; color: #fff; }
.footer-text { font-size: 13px; color: #94a3b8; line-height: 1.7; }
.footer-col-title { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }
.footer-link { display: block; font-size: 13px; color: #a3b1c4; text-decoration: none; margin-bottom: 8px; transition: color 0.15s; }
.footer-link:hover { color: #e2e8f0; }
.footer-bottom {
  max-width: 1100px; margin: 36px auto 0;
  padding-top: 20px; border-top: 1px solid #1e293b;
  font-size: 11px; color: #8394ab; text-align: center;
}

/* ============ MOTION ============
   Hero: each line rises in, one after another, on page load.
   Sections: headings and cards fade up once as they scroll into view (index.php adds .in);
   cards in the same row follow each other by --i × 70 ms.
   Only applied when JavaScript runs (html.js), so the page is never left blank. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-tag     { animation: rise .6s cubic-bezier(.22,1,.36,1) .15s both; }
.hero h1      { animation: rise .7s cubic-bezier(.22,1,.36,1) .25s both; }
.hero-desc    { animation: rise .7s cubic-bezier(.22,1,.36,1) .35s both; }
.hero-actions { animation: rise .7s cubic-bezier(.22,1,.36,1) .45s both; }
.hero-orb { animation: orb-drift 16s ease-in-out infinite; }
.hero-orb.b { animation-duration: 20s; animation-direction: reverse; }
.hero-orb.c { animation-duration: 24s; }
@keyframes orb-drift { 0%, 100% { translate: 0 0; } 50% { translate: 40px -30px; } }

.js .reveal {
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
/* Hidden only until it scrolls in, so the cards' own hover lift keeps working afterwards */
.js .reveal:not(.in) { opacity: 0; transform: translateY(16px); }
/* After the card has appeared, hover and press use their own quick timing */
.js .ev-card.reveal.in, .js .imp-card.reveal.in { transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s; transition-delay: calc(var(--i, 0) * 70ms), 0s, 0s; }
.js .ann-card.reveal.in { transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .2s; transition-delay: calc(var(--i, 0) * 70ms), 0s; }
.imp-stat-val { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-seal, .hero-tag, .hero h1, .hero-desc, .hero-actions, .hero-orb,
  .modal-content, .modal-overlay.open, .modal-overlay.closing, .modal-overlay.closing .modal-content { animation: none !important; }
  .js .reveal, .js .reveal:not(.in) { opacity: 1; transform: none; transition: none; }
}

/* ============ 2026-11-06 additions (brain/plans/2026-11-06-landing-additions.md) ============ */

/* Our community in numbers: a white band overlapping the bottom of the hero */
.stats-band { position: relative; z-index: 2; padding: 0 24px; margin-top: -56px; }
.stats-inner { max-width: 1100px; margin: 0 auto; padding: 26px 28px; background: #fff; border-radius: 18px;
  border: 1px solid #e8ecf1; box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08); }
.stats-title { margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #64748b; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.stat-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 12px; }
.stat-icon svg { width: 21px; height: 21px; }
.stat-icon.is-blue { background: #dbeafe; color: #1d4ed8; }
.stat-icon.is-green { background: #dcfce7; color: #15803d; }
.stat-icon.is-purple { background: #f3e8ff; color: #7c3aed; }
.stat-icon.is-amber { background: #fef3c7; color: #d97706; }
.stat b { font-size: 30px; font-weight: 800; color: #0f172a; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .stat-of { font-size: 15px; font-weight: 600; color: #94a3b8; }
.stat > small { font-size: 13px; color: #64748b; }

/* How it works */
.how-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.how-step { position: relative; padding: 26px 24px 24px; background: #fff; border: 1px solid #e8ecf1; border-radius: 16px; }
.how-num { position: absolute; top: 18px; right: 20px; font-size: 44px; font-weight: 900; line-height: 1; color: #eff6ff; }
.how-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6); box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25); }
.how-icon svg { width: 24px; height: 24px; }
.how-step h3 { position: relative; margin-bottom: 8px; font-size: 17px; font-weight: 700; color: #0f172a; }
.how-step p { position: relative; font-size: 14px; line-height: 1.65; color: #64748b; }
.how-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; font-size: 14px; color: #64748b; }
.how-cta a:not(.btn) { color: #2563eb; font-weight: 600; }
.btn-primary { padding: 13px 28px; font-size: 15px; color: #fff; background: #2563eb; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37, 99, 235, 0.3); }

/* How it works beside the dashboard preview: steps stacked on the left, the phone on the right */
/* align-items: start (2026-11-08): centred, the steps sat far below the heading because the phone is taller */
.how-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; margin-top: 8px; }
.how-wrap .how-steps { grid-template-columns: 1fr; gap: 14px; }
.how-wrap .how-step { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding: 20px 22px; }
.how-wrap .how-icon { grid-row: span 2; margin-bottom: 0; }
.how-wrap .how-num { top: 14px; font-size: 36px; }

/* Resident Home preview: a phone drawn in CSS, sample data only (index.php) */
.pv-phone-wrap { margin: 0; text-align: center; }
.pv-phone { position: relative; width: 280px; margin: 0 auto; padding: 12px; border-radius: 42px; background: #0f172a;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28), inset 0 0 0 2px #334155; transform: rotate(2deg); transition: transform .4s ease; }
.pv-phone-wrap:hover .pv-phone { transform: rotate(0); }
.pv-notch { position: absolute; top: 12px; left: 50%; z-index: 2; width: 92px; height: 20px; margin-left: -46px; border-radius: 0 0 14px 14px; background: #0f172a; }
.pv-screen { overflow: hidden; border-radius: 31px; background: #f1f5f9; text-align: left; font-size: 11px; color: #0f172a; }
.pv-top { display: flex; align-items: center; gap: 7px; padding: 26px 14px 10px; background: #fff; }
.pv-top img { width: 22px; height: 22px; border-radius: 50%; }
.pv-top b { flex: 1; font-size: 12px; color: #059669; }
.pv-bell { position: relative; width: 18px; height: 18px; color: #475569; }
.pv-bell svg { width: 18px; height: 18px; }
.pv-bell i { position: absolute; top: -5px; right: -6px; min-width: 14px; height: 14px; border-radius: 7px; font-size: 9px; font-style: normal; font-weight: 700;
  line-height: 14px; text-align: center; color: #fff; background: #ef4444; }
.pv-hero { display: flex; flex-direction: column; gap: 2px; margin: 10px; padding: 14px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.pv-hero small { font-size: 9px; opacity: .75; }
.pv-hero b { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.pv-hero span { margin-top: 6px; font-size: 10.5px; opacity: .9; }
.pv-hero em { font-style: normal; font-size: 10px; font-weight: 800; text-decoration: underline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-hero .pv-pill { align-self: flex-start; margin-top: 8px; padding: 4px 10px; border-radius: 99px; font-size: 9px; font-weight: 800; letter-spacing: .3px;
  text-transform: uppercase; opacity: 1; background: #f59e0b; }
.pv-pass { margin: 0 10px 10px; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(15, 23, 42, .08); }
.pv-pass-head { padding: 10px 12px 18px; color: #fff; background: linear-gradient(140deg, #1d4ed8, #3b82f6); }
.pv-pass-head span { display: inline-block; padding: 2px 7px; border-radius: 99px; font-size: 8px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; background: rgba(255,255,255,.22); }
.pv-pass-head b { display: block; margin-top: 6px; font-size: 13px; font-weight: 800; line-height: 1.25; }
.pv-pass-ok { display: flex; align-items: center; gap: 7px; margin: -11px 10px 0; padding: 7px 9px; border-radius: 10px; background: #fff;
  border: 1px solid #e2e8f0; box-shadow: 0 4px 10px rgba(15,23,42,.08); font-size: 10px; font-weight: 800; color: #15803d; }
.pv-pass-ok i { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; font-style: normal; color: #fff; background: #16a34a; }
.pv-pass-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 10px 0; }
.pv-pass-facts span { padding: 6px 8px; border-radius: 9px; font-weight: 800; background: #f8fafc; border: 1px solid #e2e8f0; }
.pv-pass-facts small { display: block; font-size: 8px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #64748b; }
.pv-pass-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px; border-top: 2px dashed #e2e8f0; }
.pv-qr { flex: none; width: 52px; height: 52px; padding: 3px; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; }
.pv-pass-foot span { font-size: 10px; font-weight: 800; }
.pv-pass-foot small { display: block; margin-top: 2px; font-weight: 500; color: #64748b; }
.pv-nav { display: flex; justify-content: space-around; padding: 9px 6px 14px; background: #fff; border-top: 1px solid #e2e8f0; font-size: 9px; font-weight: 700; color: #94a3b8; }
.pv-nav .is-on { color: #059669; }
.pv-phone-wrap figcaption { margin-top: 18px; font-size: 12.5px; color: #64748b; }

/* Upcoming Events filter */
.ev-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 24px; }
.ev-chip { padding: 8px 15px; font-family: inherit; font-size: 13px; font-weight: 600; color: #475569; cursor: pointer;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; transition: background .15s, color .15s, border-color .15s; }
.ev-chip:hover { border-color: #93c5fd; color: #1d4ed8; }
.ev-chip.is-on { color: #fff; background: #2563eb; border-color: #2563eb; }
.ev-chip:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.ev-card[hidden] { display: none; }
.ev-more { margin-top: 22px; font-size: 14px; color: #64748b; }
.ev-more a { color: #2563eb; font-weight: 600; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq { background: #fff; border: 1px solid #e8ecf1; border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.faq[open] { border-color: #bfdbfe; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px;
  font-size: 15.5px; font-weight: 700; color: #0f172a; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 18px; font-weight: 600; color: #2563eb; background: #eff6ff; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid #93c5fd; outline-offset: -3px; border-radius: 14px; }
.faq p { padding: 0 20px 18px; font-size: 14.5px; line-height: 1.7; color: #475569; }
.faq p a { color: #2563eb; font-weight: 600; }

/* Privacy Notice pop-up */
.pv-content { max-width: 640px; }
.pv-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #f1f5f9; }
.pv-head h3 { font-size: 18px; font-weight: 800; color: #0f172a; }
.pv-close { width: 34px; height: 34px; font-size: 22px; line-height: 1; color: #475569; background: #f1f5f9; border: 0; border-radius: 50%; cursor: pointer; }
.pv-content .privacy-notice { padding: 6px 22px 22px; overflow-y: auto; font-size: 14px; line-height: 1.65; color: #475569; }
.privacy-notice h2 { margin: 18px 0 6px; font-size: 15px; color: #0f172a; }
.privacy-notice p { margin: 6px 0; }
.privacy-notice ul { margin: 4px 0; padding-left: 20px; }
.privacy-notice .updated { font-size: 12px; color: #94a3b8; }
.privacy-notice .summary { margin: 10px 0; padding: 12px 14px; border-radius: 10px; background: #eff6ff; color: #1e3a8a; }

.ev-show-more { display: none; }

@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr; }
  .how-wrap { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero-counters { gap: 24px; flex-wrap: wrap; }
  .events-grid, .impact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .stats-band { margin-top: -40px; padding: 0 16px; }
  .stats-inner { padding: 22px 16px; }
  .stat b { font-size: 26px; }
  /* The four numbers appear together and quickly (index.php: phones) */
  .js .stat.reveal { transition-duration: .35s; }
  .ev-filter { flex-wrap: nowrap; overflow-x: auto; margin-right: -24px; padding-right: 24px; scrollbar-width: none; }
  .ev-chip { flex: none; }
  /* Phones: the first 6 events, then "Show more" (index.php) */
  .events-grid.is-collapsed .ev-card:nth-child(n+7) { display: none; }
  .ev-show-more { display: block; width: 100%; margin-top: 16px; padding: 13px; font-family: inherit; font-size: 14px; font-weight: 700;
    color: #2563eb; background: #fff; border: 1px solid #bfdbfe; border-radius: 12px; cursor: pointer; }
  .ev-show-more[hidden] { display: none; }
  .how-wrap .how-step { grid-template-columns: 1fr; }
  .how-wrap .how-icon { grid-row: auto; margin-bottom: 14px; }
  /* Phones: the two hero buttons stack at the same width (2026-11-08) */
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 340px; margin: 0 auto; gap: 12px; }
  .hero-actions .btn { width: 100%; padding: 15px 20px; }
}

/* "See all announcements" under the first 3 (2026-11-08) */
.ann-more-btn { display: block; margin: 16px auto 0; padding: 10px 20px; border-radius: 999px; border: 1px solid #dbe3ee;
  background: #fff; color: #1d4ed8; font: 600 14px/1.2 inherit; font-family: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.ann-more-btn:hover { background: #eff6ff; border-color: #bfdbfe; }
.ann-more-btn:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
