:root {
  --purple: #6B2E83;
  --purple-light: #A67CC7;
  --green: #2E7D32;
  --cream: #F6F1E9;
  --dark: #333333;
  --white: #ffffff;
  --border: #e0d9f0;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background: var(--white);
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Playfair Display', serif;
}

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(107, 46, 131, .07);
}

.navbar-brand img {
  height: 52px;
}

.navbar-brand .brand-text {
  line-height: 1.15;
}

.navbar-brand .brand-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--purple);
}

.navbar-brand .brand-sub {
  font-size: .75rem;
  color: var(--green);
  font-weight: 500;
}

.nav-link {
  color: var(--dark) !important;
  font-weight: 500;
  font-size: .92rem;
  padding: 6px 14px !important;
  transition: color .2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--purple) !important;
}

.nav-link.active {
  border-bottom: 2px solid var(--green);
}

.btn-donate-nav {
  background: var(--purple);
  color: var(--white) !important;
  border-radius: 50px;
  padding: 8px 22px !important;
  font-weight: 600;
  transition: background .2s, transform .15s;
}

.btn-donate-nav:hover {
  background: #520f6b;
  transform: translateY(-1px);
}

/* ── PAGE SYSTEM ── */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* ── HERO ── */
.hero-section {
  background: linear-gradient(135deg, #f9f4ff 0%, var(--cream) 100%);
  padding: 72px 0 48px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 124, 199, .18) 0%, transparent 70%);
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--purple);
  line-height: 1.15;
}

.hero-divider {
  width: 56px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin: 20px 0;
}

.hero-body {
  font-size: 1.05rem;
  color: #555;
  max-width: 420px;
  line-height: 1.7;
}

.hero-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(107, 46, 131, .18);
  position: relative;
}

.hero-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}



.btn-primary-custom {
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: .97rem;
  letter-spacing: .3px;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-custom:hover {
  background: #520f6b;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 46, 131, .28);
}

.btn-outline-custom {
  border: 2px solid var(--purple);
  color: var(--purple);
  background: transparent;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all .2s;
}

.btn-outline-custom:hover {
  background: var(--purple);
  color: var(--white);
}

/* ── PILLARS ── */
.pillars-section {
  padding: 56px 0;
  background: var(--white);
}

.pillar-card {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}

.pillar-card:hover {
  box-shadow: 0 8px 32px rgba(107, 46, 131, .13);
  transform: translateY(-4px);
}

.pillar-icon {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, rgba(107, 46, 131, .1), rgba(46, 125, 50, .1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.7rem;
}

.pillar-card h5 {
  color: var(--purple);
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
}

.pillar-card p {
  font-size: .88rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ── GALLERY ── */
.gallery-section {
  padding: 56px 0;
  background: var(--cream);
}

.gallery-section h2 {
  color: var(--green);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 36px;
}

.gallery-img {
  border-radius: 14px;
  overflow: hidden;
  height: 200px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
  transition: transform .3s;
}

.gallery-img:hover {
  transform: scale(1.03);
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── STATS ── */
.stats-strip {
  background: var(--purple);
  padding: 48px 0;
}

.stat-item {
  text-align: center;
}

.stat-icon {
  font-size: 2.7rem;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 8px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
}

.stat-label {
  font-size: .88rem;
  color: rgba(255, 255, 255, .75);
  margin-top: 4px;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--purple);
  padding: 44px 0;
}

.cta-banner h3 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.5rem;
}

.btn-cta-white {
  background: var(--white);
  color: var(--purple);
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 700;
  border: none;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-white:hover {
  background: var(--cream);
  color: var(--purple);
  transform: translateY(-2px);
}

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--purple) 0%, #520f6b 100%);
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
}

.page-hero p {
  color: rgba(255, 255, 255, .8);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 14px auto 0;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: rgba(255, 255, 255, .65);
  font-size: .88rem;
}

.breadcrumb-item.active {
  color: var(--white);
}

/* ── ABOUT PAGE ── */
.about-lead {
  font-size: 1.12rem;
  color: #555;
  line-height: 1.8;
}

.about-highlight {
  background: linear-gradient(135deg, rgba(107, 46, 131, .06), rgba(46, 125, 50, .06));
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  font-size: 1rem;
  line-height: 1.75;
  color: #444;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  height: 100%;
  transition: all .2s;
}

.value-card:hover {
  box-shadow: 0 8px 32px rgba(107, 46, 131, .12);
  transform: translateY(-3px);
}

.value-card .icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* ── OUR WORK ── */
.work-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
  height: 100%;
  transition: all .25s;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(107, 46, 131, .15);
}

.work-card-img {
  height: 220px;
  overflow: hidden;
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.work-card:hover .work-card-img img {
  transform: scale(1.07);
}

.work-card-body {
  padding: 24px;
}

.work-tag {
  display: inline-block;
  background: rgba(107, 46, 131, .1);
  color: var(--purple);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: .77rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ── STORIES ── */
.story-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
  height: 100%;
  transition: all .25s;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(107, 46, 131, .14);
}

.story-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.story-card-body {
  padding: 22px;
}

.story-card blockquote {
  font-style: italic;
  color: #555;
  border-left: 3px solid var(--green);
  padding-left: 14px;
  font-size: .95rem;
  line-height: 1.7;
}

.story-author {
  font-weight: 600;
  color: var(--purple);
  font-size: .88rem;
}

/* ── RESOURCES ── */
.resource-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all .2s;
}

.resource-item:hover {
  border-color: var(--purple-light);
  box-shadow: 0 4px 20px rgba(107, 46, 131, .1);
}

.resource-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(107, 46, 131, .1), rgba(46, 125, 50, .1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--purple);
}

/* ── GET INVOLVED ── */
.involve-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  height: 100%;
  transition: all .25s;
}

.involve-card:hover {
  border-color: var(--purple);
  box-shadow: 0 8px 32px rgba(107, 46, 131, .12);
  transform: translateY(-4px);
}

.involve-card .big-icon {
  font-size: 3rem;
  margin-bottom: 18px;
  display: block;
}

/* ── DONATE ── */
.donate-section {
  padding: 72px 0;
  background: var(--cream);
}

.donate-card {
  background: var(--white);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 8px 48px rgba(107, 46, 131, .1);
}

.amount-btn {
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  width: 100%;
}

.amount-btn:hover,
.amount-btn.active {
  border-color: var(--purple);
  background: rgba(107, 46, 131, .06);
}

.amount-btn .amount {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple);
}

.amount-btn .label {
  font-size: .75rem;
  color: #777;
  margin-top: 2px;
}

.donate-img {
  border-radius: 20px;
  overflow: hidden;
  height: 460px;
}

.donate-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secure-note {
  font-size: .82rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── CONTACT ── */
.contact-info-card {
  background: var(--purple);
  border-radius: 20px;
  padding: 40px 32px;
  color: var(--white);
  height: 100%;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-info-item .ci-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .07);
}

.form-control,
.form-select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .93rem;
  transition: border-color .2s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107, 46, 131, .12);
}

.form-label {
  font-weight: 500;
  font-size: .88rem;
  color: #444;
  margin-bottom: 6px;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .75);
  padding: 60px 0 24px;
}

footer .footer-brand {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
}

footer .footer-sub {
  color: var(--green);
  font-size: .8rem;
  font-weight: 500;
}

footer h6 {
  color: var(--white);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s;
}

footer ul li a:hover {
  color: var(--purple-light);
}

footer .social-link {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, .1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .95rem;
  transition: background .2s;
  text-decoration: none;
}

footer .social-link:hover {
  background: var(--purple);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 40px;
  padding-top: 20px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .4);
}

/* ── SECTION LABELS ── */
.section-eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  color: var(--purple);
  font-weight: 700;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin: 16px 0 28px;
}

/* ── TOAST ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.toast-success {
  background: var(--green);
  color: var(--white);
  border-radius: 12px;
  padding: 16px 24px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp .3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-img-wrap {
    margin-top: 36px;
  }

  .hero-img-wrap img {
    height: 300px;
  }

  .donate-card {
    padding: 28px 20px;
  }

  .contact-form-card {
    padding: 28px 20px;
  }

  .stat-number {
    font-size: 1.8rem;
  }
}

/* ── ANIMATIONS ── */
.fade-in {
  animation: fadeIn .5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mission ribbon */
.mission-ribbon {
  background: linear-gradient(135deg, var(--green) 0%, #1b5e20 100%);
  padding: 32px 0;
}

.mission-ribbon p {
  color: rgba(255, 255, 255, .9);
  font-size: .97rem;
  margin: 0;
  line-height: 1.7;
}

.mission-ribbon h4 {
  color: var(--white);
  font-family: 'Playfair Display', serif;
}

.team-card {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all .2s;
}

.team-card:hover {
  border-color: var(--purple-light);
  box-shadow: 0 8px 28px rgba(107, 46, 131, .1);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-light), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--white);
  font-weight: 700;
}