/* Global site stylesheet (no Tailwind). */
:root {
  --brand-blue: #27AAE2;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #fcfcfc;
  --card: #f6f7fb;
  --border: rgba(39, 170, 226, 0.15);
  --white: #ffffff;
  --bg-accent-1: linear-gradient(180deg, #f8fbff 0%, #f4faff 100%);
  --bg-accent-2: radial-gradient(1200px 300px at 50% -50px, rgba(39,170,226,0.12), transparent 60%), #ffffff;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.spacer-80 { height: 80px; }
/* Links and text helpers */
.link { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 2px; }
.muted { color: var(--muted); }

/* Header */
.header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.92); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; height: 80px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav details { position: relative; }
.nav summary { list-style: none; cursor: pointer; padding: 8px 10px; border-radius: 8px; color: #374151; display: flex; align-items: center; gap: 6px; }
.nav summary:hover { color: var(--brand-blue); background: rgba(39,170,226,0.08); }
.nav details[open] > summary { color: var(--brand-blue); background: rgba(39,170,226,0.12); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); padding: 8px; display: grid; gap: 4px; }
.dropdown a { padding: 10px 12px; border-radius: 8px; color: #374151; display: flex; align-items: center; gap: 8px; }
.dropdown a:hover { background: rgba(39,170,226,0.08); color: var(--brand-blue); }

/* Mobile nav */
.menu-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--border); color: #374151; height: 40px; width: 44px; border-radius: 10px; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; }
.mobile-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.35); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 900; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 80px 0 0 0; background: #fff; border-top: 1px solid var(--border); display: block; padding: 16px; transform: translateX(100%); transition: transform .3s ease; z-index: 1000; overflow-y: auto; }
  .nav details { position: static; border: 1px solid var(--border); border-radius: 12px; background: var(--card); margin-bottom: 12px; }
  .nav summary { display: flex; justify-content: space-between; align-items: center; }
  .dropdown { position: static; top: auto; left: auto; min-width: 100%; box-shadow: none; border: none; background: transparent; padding: 8px 8px 12px; }
  .dropdown a { background: #fff; border: 1px solid var(--border); }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open .mobile-backdrop { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}

/* Ensure mobile nav fills available height and not clipped by header */
@media (max-width: 900px) {
  .header { z-index: 1100; }
  .nav { top: 80px; bottom: 0; left: 0; right: 0; height: calc(100vh - 80px); box-sizing: border-box; padding-bottom: 48px; }
  .nav::-webkit-scrollbar { width: 8px; }
  .nav::-webkit-scrollbar-thumb { background: rgba(39,170,226,0.18); border-radius: 8px; }
}

/* Donate QR modal */
.donate-modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 1200; }
.donate-modal-bg.show { opacity: 1; pointer-events: auto; }
.donate-modal { width: 92vw; max-width: 420px; background: rgba(255,255,255,0.95); border-radius: 12px; padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,0.4); display: grid; gap: 12px; align-items: center; }
.donate-modal .qr { width: 100%; height: auto; border-radius: 8px; background: #fff; padding: 8px; display: block; }
.donate-modal .actions { display:flex; gap:8px; justify-content: space-between; }
.donate-modal .actions .btn { flex:1; }
.donate-modal .close { background: transparent; border: none; font-size: 20px; color: #374151; cursor: pointer; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: linear-gradient(90deg, #27AAE2, #0891b2); color: #fff; font-weight: 600; border: none; cursor: pointer; box-shadow: 0 6px 16px rgba(8,145,178,0.18); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(8,145,178,0.22); }

/* Sections */
.section { padding: 40px 0; position: relative; }
.section h1, .section h2 { color: var(--brand-blue); margin: 0 0 8px; }
.section .eyebrow { color: var(--muted); font-size: 14px; }

/* Curved colorful sections */
.section.alt { background: var(--bg-accent-1); }
.section.curved { border-radius: 28px; margin: 24px 16px; box-shadow: 0 12px 30px rgba(39,170,226,0.08); background-image: var(--bg-accent-2); }
.section.curved .container { padding-top: 8px; padding-bottom: 8px; }

/* Simple grid */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Support alternate class naming used in pages */
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .grid.two { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.05); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,0.08); }
.card.gradient-1 { color: #fff; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; }
.card.gradient-2 { color: #fff; background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); border: none; }
/* Glassy card variant */
.card.glass { background: rgba(255,255,255,0.56); border: 1px solid rgba(255,255,255,0.35); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 16px 36px rgba(39,170,226,0.12), inset 0 1px 0 rgba(255,255,255,0.5); }
.card.maxw-900 { max-width: 900px; margin-left: auto; margin-right: auto; }
.card.left-aligned { margin-left: 0; margin-right: auto; }
.media { display: flex; align-items: center; gap: 12px; }
.media img.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.media img.avatar + img.avatar { margin-left: -8px; border: 2px solid #fff; }
/* Leadership highlight responsive tweaks */
#leadership-highlight .media { flex-wrap: wrap; }
#leadership-highlight .avatar { width: 60px; height: 60px; }
@media (max-width: 700px) {
  #leadership-highlight .avatar { width: 50px; height: 50px; }
}
@media (min-width: 1024px) {
  /* On wide screens, align highlight card left for a stronger anchor */
  #leadership-highlight .card.maxw-900 { margin-left: 0; margin-right: auto; }
}

/* Notes */
.note { background: #e3f2fd; color: #0b5394; border-left: 3px solid var(--brand-blue); padding: 12px 14px; border-radius: 8px; }

/* Footer */
.footer { margin-top: auto; background: #fff; border-top: 1px solid var(--border); }
.footer-inner { padding: 40px 24px; display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer .brand { flex-direction: column; text-align: center; }
.footer h3 { margin: 0 0 8px; font-size: 18px; }
.footer a { color: #111827; }
.footer a:hover { color: var(--brand-blue); }
.footer-bottom { padding: 12px 24px; border-top: 1px solid var(--border); text-align: center; color: #6b7280; font-size: 12px; }

/* Reveal animations (CSS fallback for pages without GSAP) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* Forms */
.form { display: grid; gap: 12px; }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: #374151; }
.field input, .field textarea { padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; outline: none; background: rgba(255,255,255,0.85); }
.field input:focus, .field textarea:focus { border-color: #93c5fd; box-shadow: 0 0 0 4px rgba(147,197,253,0.25); }
.field textarea { min-height: 140px; resize: vertical; }
