*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #c9973a;
  --gold-light: #e8b84b;
  --navy: #0d1b2a;
  --navy-mid: #1b2f45;
  --navy-light: #243b55;
  --white: #ffffff;
  --off-white: #f7f4ef;
  --text: #1a1a2e;
  --text-muted: #5a6478;
  --border: rgba(201,151,58,0.25);
  --radius: 12px;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
}

/* ---- Header ---- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  font-size: 32px;
  color: var(--gold);
  line-height: 1;
}

.logo-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
}

.logo-sub {
  font-size: 12px;
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.5px;
}

.donate-btn-header {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.donate-btn-header:hover { background: var(--gold-light); }

/* ---- Nav ---- */
.site-nav {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  overflow-x: auto;
}

.nav-tab {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.nav-tab:hover { color: rgba(255,255,255,0.9); }
.nav-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ---- Main ---- */
.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.tab-section { display: none; }
.tab-section.active { display: block; }

/* ---- Section Heroes ---- */
.section-hero {
  text-align: center;
  padding: 64px 24px 48px;
  margin: 0 -24px 40px;
  position: relative;
}

.section-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.section-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.outreach-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 50%, #0d2436 100%);
}
.testimonies-hero {
  background: linear-gradient(135deg, #2d1b00 0%, #5c3a0d 50%, #3d2200 100%);
}
.events-hero {
  background: linear-gradient(135deg, #0d2a1b 0%, #1a5c3a 50%, #0d3020 100%);
}
.prayer-hero {
  background: linear-gradient(135deg, #1a0d2a 0%, #3a1b5c 50%, #200d3d 100%);
}

.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-btn {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.1s;
}
.hero-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ---- Cards Grid ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.1); }

.card-icon { font-size: 36px; margin-bottom: 14px; }
.info-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--navy); }
.info-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---- About Block ---- */
.about-block {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 40px;
  margin-bottom: 20px;
}
.about-block h2 { color: var(--gold); font-size: 26px; margin-bottom: 18px; }
.about-block p { font-size: 16px; line-height: 1.8; opacity: 0.9; margin-bottom: 14px; }
.about-block p:last-child { margin-bottom: 0; }

/* ---- Testimonies ---- */
.testimony-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.testimony-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.testimony-quote {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  margin-bottom: 14px;
}

.testimony-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

/* ---- Events ---- */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
.event-card:hover { transform: translateX(4px); }

.event-date-box {
  background: var(--navy);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  min-width: 64px;
  flex-shrink: 0;
}
.event-month { display: block; font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 1px; }
.event-day { display: block; font-size: 28px; font-weight: 700; color: var(--white); line-height: 1.2; }

.event-info h3 { font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.event-meta { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.event-info p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---- Prayer ---- */
.prayer-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.prayer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.prayer-card.urgent { border-left: 4px solid #ef4444; }

.prayer-badge {
  display: inline-block;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-family: system-ui, sans-serif;
}

.prayer-text { font-size: 15px; line-height: 1.7; margin-bottom: 10px; }
.prayer-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }

.pray-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  color: var(--navy);
  transition: all 0.2s;
}
.pray-btn:hover { background: rgba(201,151,58,0.1); border-color: var(--gold); }
.pray-btn.prayed { background: rgba(201,151,58,0.15); border-color: var(--gold); color: var(--gold); }

/* ---- Forms ---- */
.submit-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 36px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.submit-form-wrap h2 { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.submit-form-wrap p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

.submit-form { display: flex; flex-direction: column; gap: 12px; }

.submit-form input,
.submit-form textarea,
.custom-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fafaf8;
  outline: none;
  transition: border-color 0.2s;
}
.submit-form input:focus,
.submit-form textarea:focus,
.custom-input:focus { border-color: var(--gold); }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.form-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.form-btn:hover { background: var(--navy-light); }

.form-thanks {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  color: #15803d;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 12px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.footer-col p { font-size: 14px; line-height: 1.7; margin-top: 4px; }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 6px; }
.footer-col a:hover { color: var(--gold); }

.donate-btn-footer {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.donate-btn-footer:hover { background: var(--gold-light); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: var(--gold); text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }

/* ---- Modals ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 36px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-logo {
  font-size: 36px;
  text-align: center;
  margin-bottom: 8px;
  color: var(--gold);
}

.modal-box h2 {
  text-align: center;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 6px;
}

.modal-sub {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ---- Donation Modal ---- */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.amount-btn {
  background: #f1f0ec;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: var(--navy);
  transition: all 0.15s;
}
.amount-btn:hover { border-color: var(--gold); }
.amount-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.amount-btn.custom { font-size: 14px; font-weight: 600; }

.fund-select-wrap {
  margin-bottom: 16px;
}
.fund-select-wrap label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.fund-select-wrap select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fafaf8;
  outline: none;
}

.freq-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.freq-btn {
  flex: 1;
  padding: 10px;
  background: #f1f0ec;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: var(--navy);
  transition: all 0.15s;
}
.freq-btn.active { background: var(--navy); color: var(--white); }

.give-btn {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-bottom: 12px;
}
.give-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

.secure-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.donation-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #b91c1c;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 8px;
}

/* ---- Admin ---- */
.admin-modal-box {
  width: 580px;
  max-width: 96vw;
  max-height: 88vh;
  overflow-y: auto;
  padding-bottom: 24px;
}
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.admin-tab {
  background: #4a3f00;
  border: 2px solid #c8a400;
  color: #f0c040;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}
.admin-tab.active {
  background: #c8a400;
  border-color: #c8a400;
  color: #1a1a2e;
}
.admin-tab:hover {
  background: #7a6600;
  color: #fff;
}
.admin-tab-body { }
.admin-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
textarea.custom-input {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
}
.admin-section-head {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 18px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 6px;
  gap: 8px;
}
.admin-item-preview {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.admin-item-btn {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
}
.admin-item-btn.del { border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.12); color: #f87171; }
.admin-item-btn:hover { opacity: 0.75; }
.admin-urgent-badge {
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 4px;
}
.admin-card-row {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-card-top { display: flex; gap: 8px; }
.card-icon-input { width: 58px !important; }
.card-title-input { flex: 1; }
.admin-date-row { display: flex; gap: 12px; }
.admin-date-row > div { flex: 1; }
.admin-edit-actions { display: flex; gap: 8px; margin-top: 12px; }
.admin-cancel-btn { background: rgba(255,255,255,0.08) !important; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .header-inner { padding: 10px 16px; }
  .logo-title { font-size: 16px; }
  .logo-sub { display: none; }
  .site-nav { padding: 0 8px; }
  .nav-tab { padding: 10px 12px; font-size: 13px; }
  .site-main { padding: 0 16px 40px; }
  .section-hero { margin: 0 -16px 28px; padding: 40px 16px 32px; }
  .section-hero h1 { font-size: 24px; }
  .section-hero p { font-size: 15px; }
  .about-block { padding: 24px 20px; }
  .submit-form-wrap { padding: 24px 20px; }
  .modal-box { padding: 24px 20px; }
  .event-card { flex-direction: column; gap: 12px; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
