:root {
  --primary: #1f4fd6;
  --primary-dark: #173ca3;
  --accent: #ef4444;
  --text: #1f2937;
  --surface: #ffffff;
  --bg: #f4f7fb;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(31, 79, 214, 0.08), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(239, 68, 68, 0.08), transparent 30%),
    var(--bg);
  line-height: 1.6;
}

header {
  background: linear-gradient(120deg, #111827, #1f2937 60%, #1f4fd6 140%);
  color: white;
  padding: 18px 0;
  box-shadow: var(--shadow);
}

.sub-header {
  text-align: center;
  padding: 32px 20px;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.25;
}

p {
  color: var(--text);
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 40px 0;
}

.brand-title,
.center-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 0;
  padding-bottom: 0;
}

.nav h1 {
  margin: 0;
  font-size: 1.35rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* ── Page Hero (subpages) ── */

.page-hero {
  background: linear-gradient(130deg, #1f4fd6 0%, #4f46e5 60%, #6366f1 100%);
  color: white;
  text-align: center;
  padding: 56px 0 48px;
}

.page-hero h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin: 0;
}

/* ── Home Hero ── */

.hero {
  background: linear-gradient(130deg, #1f4fd6 0%, #4f46e5 60%, #6366f1 100%);
  color: white;
  padding: 70px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.hero h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.hero p {
  max-width: 760px;
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.95);
}

.hero-image {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.cta {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 24px;
  background: white;
  color: var(--primary);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.2);
}

/* ── Stats Bar ── */

.stats-bar {
  background: #111827;
  color: white;
}

.stats-bar .container {
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #93c5fd;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

/* ── Impact Section (blue bg, used on programs) ── */

.impact-section {
  background: linear-gradient(130deg, #1f4fd6 0%, #4f46e5 100%);
  color: white;
  padding: 48px 0;
}

.impact-section .stat-number {
  color: #ffffff;
}

.impact-section .stat-label {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Features / Cards Grid ── */

.features,
.involvement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature,
.program {
  background: var(--surface);
  padding: 24px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.feature h3,
.program h3,
section.container h2 {
  color: var(--primary-dark);
}

/* ── Section Headings ── */

.section-heading {
  text-align: center;
  margin-bottom: 28px;
  font-size: 1.6rem;
}

.section-heading.light {
  color: white;
}

/* ── Quote / Testimonial ── */

.quote-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.quote-section blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  border-left: 4px solid var(--primary);
  margin: 0;
  padding: 0 0 0 24px;
  max-width: 780px;
}

.quote-section cite {
  display: block;
  margin-top: 16px;
  padding-left: 28px;
  font-style: normal;
  color: #6b7280;
  font-size: 0.95rem;
}

/* ── Events Grid ── */

.events-grid {
  display: grid;
  gap: 16px;
}

.event-card {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  align-items: flex-start;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.1;
}

.event-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.event-day {
  font-size: 1.6rem;
  font-weight: 700;
}

.event-info h3 {
  margin: 0 0 6px;
  color: var(--primary-dark);
}

.event-info p {
  margin: 0;
  font-size: 0.95rem;
}

/* ── Newsletter ── */

.newsletter-section {
  background: linear-gradient(130deg, #111827, #1e293b);
  color: white;
  padding: 48px 0;
}

.newsletter-inner {
  text-align: center;
  padding-top: 0;
  padding-bottom: 0;
}

.newsletter-inner h2 {
  color: white;
}

.newsletter-inner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 24px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.newsletter-form input {
  flex: 1;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  border-radius: 999px;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.newsletter-form button:hover {
  background: #dc2626;
}

/* ── About Page ── */

.about-content h2 {
  margin-top: 36px;
}

.about-content h2:first-child {
  margin-top: 0;
}

/* Values Grid */

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.value-card h3 {
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.value-card p {
  margin: 0;
}

/* Org Info Card */

.org-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: var(--shadow);
  max-width: 480px;
}

.org-info-card p {
  margin: 6px 0;
}

/* Team Grid */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.team-card h3 {
  margin-bottom: 4px;
  font-size: 1rem;
  color: var(--text);
}

.team-role {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.team-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* ── Programs Detail ── */

.program-detail {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.program-detail .card-image {
  margin-bottom: 0;
  width: 100%;
}

.program-detail h2 {
  margin-top: 0;
}

.program-detail h3 {
  color: var(--primary-dark);
  margin-top: 18px;
  margin-bottom: 8px;
}

.program-detail ul {
  padding-left: 20px;
  margin: 8px 0;
}

.program-detail li {
  margin-bottom: 8px;
}

/* ── Donate Tiers ── */

.donate-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 20px 0 36px;
}

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.tier-card.featured-tier {
  border-color: var(--primary);
  border-width: 2px;
  transform: scale(1.04);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.tier-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.tier-card h3 {
  color: var(--text);
  margin-bottom: 10px;
}

.tier-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* Donate Methods */

.donate-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 20px 0 36px;
}

.method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.method-card h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}

/* ── Contact Layout ── */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form-col h2,
.contact-info-col h2 {
  color: var(--primary-dark);
}

.contact-info-block {
  margin-bottom: 20px;
}

.contact-info-block h3 {
  color: var(--primary-dark);
  margin-bottom: 4px;
  font-size: 1rem;
}

.contact-info-block p {
  margin: 2px 0;
}

.muted {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* FAQ */

.faq {
  margin-bottom: 18px;
}

.faq h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.faq p {
  margin: 0;
  font-size: 0.93rem;
  color: #4b5563;
}

/* ── Forms ── */

form {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 24px;
  display: grid;
  gap: 12px;
  max-width: 680px;
  margin-bottom: 20px;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button,
.donate-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  width: fit-content;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

button:hover,
.donate-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.donate-btn {
  background: var(--accent);
  color: #fff;
}

.donate-btn:hover {
  background: #dc2626;
}

/* ── Footer ── */

footer {
  margin-top: 24px;
  background: #0b1220;
  color: rgba(255, 255, 255, 0.9);
  padding: 0;
}

footer p {
  margin: 6px 0;
  color: inherit;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: white;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 3px 0;
  font-size: 0.93rem;
}

.footer-col a:hover {
  color: white;
}

.footer-col p {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 18px 20px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Responsive ── */

@media (max-width: 860px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    justify-content: flex-start;
  }

  .hero-content,
  .features,
  .involvement-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-detail {
    grid-template-columns: 1fr;
  }

  .program-detail .card-image {
    max-width: 240px;
  }

  .donate-tiers {
    grid-template-columns: repeat(2, 1fr);
  }

  .tier-card.featured-tier {
    transform: none;
  }

  .donate-methods {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .donate-tiers {
    grid-template-columns: 1fr;
  }
}
