:root {
  --blue-700: #0b4a6f;
  --blue-600: #12608f;
  --blue-500: #1b7fb8;
  --green-700: #0f3e2e;
  --green-500: #1a6a52;
  --accent-red: #c62828;
  --accent-yellow: #f4c430;
  --text-light: #ffffff;
  --text-dark: #0f1b2d;
  --bg-blue: linear-gradient(180deg, #0b4a6f 0%, #12608f 40%, #1b7fb8 100%);
  /* Tokens ported to match React globals */
  --background: #ffffff;
  --foreground: #1f2937;
  --card: #f8fafc;
  --card-foreground: #1f2937;
  --popover: #ffffff;
  --popover-foreground: #1f2937;
  --primary: #004b43;
  --primary-foreground: #ffffff;
  --secondary: #007bff;
  --secondary-foreground: #ffffff;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --accent: #ff6f61;
  --accent-foreground: #ffffff;
  --destructive: #dc3545;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #ffffff;
  --ring: rgba(0, 75, 67, 0.2);
  --radius: 8px;
}

/* Dark theme tokens (not used, kept for parity) */
.dark {
  --background: #0f172a;
  --foreground: #f8fafc;
  --card: #1e293b;
  --card-foreground: #f8fafc;
  --popover: #1e293b;
  --popover-foreground: #f8fafc;
  --primary: #10b981;
  --primary-foreground: #ffffff;
  --secondary: #3b82f6;
  --secondary-foreground: #ffffff;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #ff6f61;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #334155;
  --input: #1e293b;
  --ring: rgba(16, 185, 129, 0.3);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--foreground, var(--text-dark)); background: var(--background, #f7f9fc); }
.site-header { background: var(--primary); color: var(--primary-foreground); padding: 12px 20px; position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-link { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-title { font-weight: 700; letter-spacing: .3px; }
.logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.logo.small { width: 28px; height: 28px; }
.menu-toggle { display: none; background: rgba(255,255,255,0.12); color: #fff; border: none; padding: 8px 12px; border-radius: 8px; font: inherit; cursor: pointer; }
.nav { display: flex; align-items: center; gap: 14px; }
.nav-link { color: var(--primary-foreground); text-decoration: none; padding: 8px 10px; border-radius: 6px; opacity: .9; }
.nav-link.active, .nav-link:hover { background: rgba(255,255,255,0.12); opacity: 1; }
.nav-more { position: relative; }
.more-toggle { background: transparent; border: none; cursor: pointer; color: #e6f2ff; padding: 8px 10px; border-radius: 6px; font: inherit; }
.submenu { position: absolute; top: 100%; left: 0; background: #ffffff; color: var(--text-dark); min-width: 180px; border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.15); padding: 8px; display: none; }
.submenu-link { display: block; padding: 8px 10px; color: var(--text-dark); text-decoration: none; border-radius: 8px; }
.submenu-link.active, .submenu-link:hover { background: #f0f6ff; color: var(--blue-700); }
.nav-more:hover .submenu, .nav-more:focus-within .submenu { display: block; }
.btn { display: inline-block; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.btn-accent { background: var(--accent); color: var(--accent-foreground); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.donate-cta { background: var(--accent); color: var(--accent-foreground); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.donate-cta:hover { filter: brightness(1.05); }

.theme-toggle { background: rgba(255,255,255,0.12); color: #fff; border: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; }

.content { min-height: 60vh; }
.hero { background: var(--bg-blue); color: var(--text-light); padding: 60px 20px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; justify-items: center; }
.hero.single { grid-template-columns: 1fr; place-items: center; }
.hero.light-bg { background: url('assets/hero-hospital.jpg') center/cover no-repeat, linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.85)); color: #0f1b2d; }
.hero.light-bg .donate-cta { background: var(--secondary, #1b7fb8); }
.hero .hero-copy { max-width: 720px; justify-self: center; text-align: center; }
.hero h1 { margin: 0 0 12px; font-size: 40px; }
.hero p { margin: 0 0 18px; font-size: 18px; opacity: .95; }
.hero .hero-media { display: flex; align-items: center; justify-content: center; }
.hero .hero-media img { width: 100%; max-width: 520px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

.section { padding: 40px 20px; max-width: 1100px; margin: 0 auto; }
.card { background: #fff; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.08); padding: 24px; }
.dark .card { background: var(--card); border: 1px solid var(--border); color: var(--foreground); }
.section-title { font-size: 28px; margin: 0 0 16px; color: var(--blue-700); }
.dark .section-title { color: var(--secondary); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery-grid img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.12); background: #e8eef5; }
.event-card .event-date { display: inline-block; background: var(--blue-600); color: #fff; padding: 6px 10px; border-radius: 999px; font-size: 13px; margin-bottom: 8px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { margin: 8px 0; }

.white-box { background: #fff; border-radius: 12px; padding: 20px; border: 2px solid #e6eef5; }
.white-box h3 { margin-top: 0; color: var(--blue-700); }
.bank-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.bank-grid div { padding: 6px 0; }

.site-footer { background: var(--primary); color: var(--primary-foreground); padding: 24px 20px; }
.container { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: start; }
.footer-title { margin: 0 0 8px; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 6px 0; }
.footer-links a { color: var(--primary-foreground); text-decoration: none; opacity: .9; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-text { font-size: 14px; opacity: .9; }
.copyright { margin-top: 16px; font-size: 12px; opacity: .85; text-align: center; }

.form { display: grid; gap: 12px; }
.form input, .form textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #cfd8e3; font: inherit; }
.form button { border: none; cursor: pointer; }
.notice { background: #e8f5e9; color: #1b5e20; padding: 10px 12px; border-radius: 8px; }
.error { background: #fdecea; color: #c62828; padding: 10px 12px; border-radius: 8px; }

/* Toasts */
.toast-container { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 50; }
.toast { background: #0a3250; color: #e6f2ff; padding: 10px 12px; border-radius: 10px; box-shadow: 0 8px 18px rgba(0,0,0,0.25); animation: fadeInUp .4s ease-out both; }
.toast.success { background: #0f6f4a; }
.toast.error { background: #8a1c1c; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 60; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.5); }
.lightbox .close { position: absolute; top: 16px; right: 16px; background: #fff; border: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in-up { animation: fadeInUp .6s ease-out both; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 60px; background: #0a3250; padding: 12px; display: none; flex-direction: column; gap: 8px; box-shadow: 0 12px 20px rgba(0,0,0,0.2); }
  .nav.open { display: flex; }
  .nav-more { width: 100%; }
  .submenu { position: static; display: none; box-shadow: none; background: #08253a; border-radius: 8px; }
  .submenu-link { color: #e6f2ff; }
  .nav-more.open .submenu { display: block; }
}

/* Form grid helpers */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }