:root {
  --brand-red: #a91c23;
  --brand-red-dark: #7e1118;
  --brand-pink: #d8a39f;
  --brand-cream: #f7f1ea;
  --brand-cream-2: #fffaf5;
  --text-dark: #2b1b1d;
  --text-muted: #6e6364;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(124, 26, 34, 0.12);
  --tab-text: #7e1118;
  --tab-bg: #fff8f6;
  --tab-border: #d8a39f;
  --tab-active-bg: #a91c23;
  --tab-active-border: #a91c23;
  --tab-active-text: #ffffff;
  --tab-shadow: 0 10px 24px rgba(169, 28, 35, 0.18);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  background: var(--brand-cream-2);
  line-height: 1.7
}

img {
  max-width: 100%;
  display: block
}

.navbar {
  background: rgba(255, 250, 245, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(169, 28, 35, .08)
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none
}

.navbar-brand img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: var(--brand-red-dark);
  font-weight: 700
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500
}

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

.btn-brand {
  background: var(--brand-red);
  color: var(--white);
  border: none;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 12px 25px rgba(169, 28, 35, .18);
  text-decoration: none
}

.btn-brand:hover {
  background: var(--brand-red-dark);
  color: var(--white)
}

.navbar-toggler {
  border-color: rgba(169, 28, 35, .2)
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(216, 163, 159, .35), transparent 25%), linear-gradient(135deg, rgba(126, 17, 24, .95), rgba(169, 28, 35, .88))
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(50, 6, 10, .2), rgba(50, 6, 10, .05))
}

.eyebrow,
.section-kicker {
  display: inline-block;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff3f1;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 1rem
}

.dark-pill {
  background: rgba(169, 28, 35, .08);
  color: var(--brand-red-dark)
}

.hero-section h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1rem
}

.hero-text {
  color: rgba(255, 255, 255, .85);
  font-size: 1.08rem;
  max-width: 650px
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 2rem 0
}

.hero-photo-card {
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(0, 0, 0, .25);
  border: 5px solid rgba(255, 255, 255, .14)
}

.hero-photo-card img {
  width: 100%;
  height: 540px;
  object-fit: cover
}

.hero-stats .stat-card {
  height: 100%;
  padding: 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .12)
}

.hero-stats h3 {
  color: #fff0ee;
  font-weight: 800;
  margin-bottom: .35rem
}

.hero-stats p {
  color: rgba(255, 255, 255, .78);
  margin: 0;
  font-size: .95rem
}

.section-pad {
  padding: 96px 0
}

.section-soft {
  background: var(--brand-cream)
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--brand-red-dark);
  margin-bottom: .75rem
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto
}

.lead {
  color: var(--text-dark)
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 1.8rem
}

.mission-box {
  background: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow)
}

.mission-box h4 {
  color: var(--brand-red);
  margin-bottom: .6rem
}

.about-collage {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px
}

.collage-lg img,
.collage-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow)
}

.collage-lg {
  grid-row: span 2;
  min-height: 500px
}

.collage-sm {
  min-height: 240px
}

.quote-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(169, 28, 35, .08), rgba(216, 163, 159, .18));
  border: 1px solid rgba(169, 28, 35, .08);
  border-radius: 24px;
  padding: 1.4rem
}

.program-card {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(124, 26, 34, .16)
}

.program-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover
}

.program-body {
  padding: 1.6rem
}

.program-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(169, 28, 35, .08);
  color: var(--brand-red);
  font-size: 1.3rem;
  margin-bottom: 1rem
}

.impact-card {
  background: linear-gradient(180deg, var(--white), #fff4f3);
  border: 1px solid rgba(169, 28, 35, .08);
  border-radius: 24px;
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
  height: 100%
}

.impact-card h3 {
  color: var(--brand-red);
  font-size: 2.3rem;
  font-weight: 800
}

.gallery-tabs-main {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
  margin: 34px 0 26px
}

.centered-tabs {
  justify-content: center
}

.gallery-tab-main {
  appearance: none;
  border: 2px solid var(--tab-border);
  background: var(--tab-bg);
  color: var(--tab-text);
  border-radius: 999px;
  padding: 14px 28px;
  min-width: 120px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .22s ease;
  box-shadow: 0 2px 0 rgba(255, 255, 255, .7) inset
}

.gallery-tab-main:hover {
  transform: translateY(-1px);
  border-color: var(--brand-red)
}

.gallery-tab-main.active {
  background: linear-gradient(135deg, var(--tab-active-bg), #c84660);
  color: var(--tab-active-text);
  border-color: var(--tab-active-border);
  box-shadow: var(--tab-shadow)
}

.gallery-grid-main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px
}

.gallery-card-main {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #f0dfdf;
  box-shadow: 0 10px 30px rgba(31, 45, 61, .07);
  transition: transform .2s ease, box-shadow .2s ease
}

.gallery-card-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(31, 45, 61, .11)
}

.gallery-card-main.hidden {
  display: none !important
}

.gallery-item-main {
  padding: 0;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  position: relative;
  display: block
}

.gallery-item-main img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block
}

.gallery-badge-main {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(126, 17, 24, .88);
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700
}

.gallery-meta-main {
  padding: 14px 16px 18px
}

.gallery-meta-main h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: #16253d
}

.gallery-meta-main p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word
}

.view-all-btn {
  min-width: 220px
}

.donate-section {
  background: linear-gradient(135deg, var(--brand-red-dark), var(--brand-red))
}

.donate-card,
.qr-card,
.contact-card {
  background: rgba(255, 255, 255, .98);
  border-radius: 28px;
  padding: 1.8rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .18)
}

.qr-card img {
  width: min(100%, 320px);
  margin: 0 auto 1rem;
  border-radius: 22px;
  background: white;
  padding: 12px
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(169, 28, 35, .08)
}

.contact-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px
}

.contact-photo-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow)
}

.site-footer {
  background: var(--brand-red-dark);
  padding: 40px 0;
  color: #fff1ef
}

.footer-title,
.footer-subtitle {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 16px
}

.footer-title {
  font-size: 1.05rem
}

.footer-text {
  color: #ffe9e6;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 360px
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0
}

.footer-links li,
.footer-contact li {
  margin-bottom: 10px
}

.footer-links a {
  color: #ffe9e6;
  text-decoration: underline;
  text-underline-offset: 3px
}

.footer-links a:hover {
  color: #ffffff
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #ffe9e6
}

.footer-contact i {
  color: #ffffff;
  margin-top: 5px
}

.footer-socials {
  display: flex;
  gap: 18px;
  margin-top: 24px
}

.footer-socials a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c84660;
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem
}

.footer-socials a:hover {
  background: #a91c23;
  color: #fff
}

.gallery-page-body {
  font-family: "Poppins", sans-serif;
  background: #fff;
  color: var(--text-dark)
}

.gallery-page-section {
  padding: 64px 20px 72px;
  background: linear-gradient(180deg, #fff 0%, #faf7f9 100%)
}

.gallery-page-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px
}

.gallery-page-eyebrow {
  background: rgba(169, 28, 35, .08);
  color: var(--brand-red-dark)
}

.gallery-page-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  color: #18273f
}

.gallery-page-text {
  margin: 0;
  color: var(--text-muted);
  max-width: 760px
}

.back-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid var(--tab-border);
  color: var(--tab-text);
  text-decoration: none;
  font-weight: 700;
  background: var(--tab-bg)
}

.back-link-btn:hover {
  color: var(--tab-text);
  border-color: var(--brand-red)
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 6, 8, .88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000
}

.image-modal.show {
  display: flex
}

.modal-body {
  max-width: 960px;
  width: 100%;
  text-align: center
}

.modal-body img {
  max-height: 78vh;
  margin: 0 auto 1rem;
  border-radius: 26px;
  max-width: 100%
}

.modal-body p {
  color: #fff1ef;
  margin: 0
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .14);
  color: white;
  font-size: 1.4rem
}

@media (max-width:1199px) {
  .gallery-grid-main {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width:991px) {
  .section-pad {
    padding: 78px 0
  }

  .about-collage,
  .contact-photo-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .collage-lg {
    grid-row: auto;
    min-height: 320px;
    grid-column: 1 / -1
  }

  .hero-photo-card img {
    height: 420px
  }

  .gallery-page-top {
    flex-direction: column;
    align-items: flex-start
  }
}

@media (max-width:767px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch
  }

  .contact-photo-grid,
  .about-collage {
    grid-template-columns: 1fr
  }

  .hero-photo-card img {
    height: 340px
  }

  .gallery-grid-main {
    grid-template-columns: repeat(2, 1fr)
  }

  .gallery-tabs-main {
    gap: 12px;
    justify-content: center
  }

  .gallery-tab-main {
    min-width: auto;
    padding: 12px 20px
  }
}

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

  .gallery-tab-main {
    width: calc(50% - 6px);
    text-align: center
  }
}

.btn-white {
  background-color: var(--white);
  color: var(--brand-red);
  border: none;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 12px 25px rgba(169, 28, 35, .18);
  text-decoration: none
}

.btn-white:hover {
  color: var(--text-dark);
}