/* =========================================================
   Get Involved page
   ========================================================= */

.get-involved-page {
  --brand: #2d3782;
  --brand-accent: #c7783e;
  --brand-accent-dark: #ae6430;
  --brand-deep: #151a45;
  --surface: #f6f7fb;
  --text-muted: #5b6078;
  --border: #e1e4ef;
  --radius-lg: 20px;

  background: var(--surface);
  color: var(--brand-deep);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Container width ---------- */

.get-involved-page .container {
  max-width: 1040px;
}

/* ---------- Intro ---------- */

.get-involved-page .get-involved-intro {
  padding: 56px 0 28px;
}

.get-involved-page .get-involved-intro__inner {
  max-width: 560px;
}

.get-involved-page .get-involved-intro__title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--brand);
}

.get-involved-page .get-involved-intro__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Gallery ---------- */

.get-involved-page .get-involved-gallery {
  padding: 0 0 56px;
}

.get-involved-page .bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 290px;
  gap: 16px;
}

.get-involved-page .bento-card--health {
  grid-column: span 7;
}
.get-involved-page .bento-card--education {
  grid-column: span 5;
}
.get-involved-page .bento-card--livelihood {
  grid-column: span 5;
}
.get-involved-page .bento-card--sponsor {
  grid-column: span 7;
}

/* ---------- Card ---------- */

.get-involved-page .bento-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  isolation: isolate;
}

.get-involved-page .bento-card--sponsor {
  background: linear-gradient(
    135deg,
    var(--brand-accent),
    var(--brand-accent-dark)
  );
}

.get-involved-page .bento-card__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.get-involved-page .bento-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.get-involved-page .bento-card:hover .bento-card__img {
  transform: scale(1.04);
}

/* Readability overlay */
.get-involved-page .bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(21, 26, 69, 0.92) 0%,
    rgba(21, 26, 69, 0.55) 45%,
    rgba(21, 26, 69, 0) 80%
  );
}

.get-involved-page .bento-card--sponsor::after {
  background: linear-gradient(
    to top,
    rgba(92, 46, 14, 0.9) 0%,
    rgba(92, 46, 14, 0.5) 45%,
    rgba(92, 46, 14, 0) 80%
  );
}

.get-involved-page .bento-card__body {
  width: 100%;
  max-width: 420px;
  padding: 22px 24px;
  color: #fff;
}

.get-involved-page .bento-card__title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.get-involved-page .bento-card__text {
  margin: 0 0 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- Donate button ---------- */

.get-involved-page .bento-card__btn {
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.get-involved-page .bento-card__btn:hover {
  background: #fff;
  color: var(--brand);
}

.get-involved-page .bento-card__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Sponsor card: blue button stays visible on the orange tone */
.get-involved-page .bento-card--sponsor .bento-card__btn {
  background: var(--brand);
}

.get-involved-page .bento-card--sponsor .bento-card__btn:hover {
  background: #fff;
  color: var(--brand);
}

/* ---------- FAQ ---------- */

.get-involved-page .get-involved-faq {
  padding: 8px 0 72px;
}

.get-involved-page .get-involved-faq__inner {
  max-width: 760px;
  margin: 0 auto;
}

.get-involved-page .get-involved-faq__title {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--brand);
  text-align: center;
}

.get-involved-page .faq-accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-width: 0;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-bg: #fff;
  --bs-accordion-active-color: var(--brand);
  --bs-accordion-btn-color: var(--brand-deep);

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.get-involved-page .faq-accordion__item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.get-involved-page .faq-accordion__header {
  margin: 0;
}

.get-involved-page .faq-accordion__button {
  padding: 15px 20px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: none;
}

.get-involved-page .faq-accordion__button:not(.collapsed) {
  color: var(--brand);
  box-shadow: none;
}

.get-involved-page .faq-accordion__button:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: -2px;
}

.get-involved-page .faq-accordion__body {
  padding: 0 20px 18px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.get-involved-page .get-involved-faq__contact {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}

.get-involved-page .get-involved-faq__contact a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.get-involved-page .get-involved-faq__contact a:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
  .get-involved-page .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 270px;
  }

  .get-involved-page .bento-card--health,
  .get-involved-page .bento-card--education,
  .get-involved-page .bento-card--livelihood,
  .get-involved-page .bento-card--sponsor {
    grid-column: span 1;
  }
}

@media (max-width: 575.98px) {
  .get-involved-page .get-involved-intro {
    padding: 40px 0 20px;
  }

  .get-involved-page .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
    gap: 14px;
  }

  .get-involved-page .bento-card__body {
    padding: 18px 20px;
  }

  .get-involved-page .get-involved-faq {
    padding-bottom: 48px;
  }

  .get-involved-page .get-involved-faq__title {
    text-align: left;
  }

  .get-involved-page .get-involved-faq__contact {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .get-involved-page .bento-card__img,
  .get-involved-page .bento-card__btn {
    transition: none;
  }

  .get-involved-page .bento-card:hover .bento-card__img {
    transform: none;
  }
}
