.volunteer-page-hero,
.volunteer-page-activities,
.volunteer-page-interest,
.volunteer-page-voices {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1rem, calc((100vw - 1360px) / 2 + 1rem));
  padding-right: max(1rem, calc((100vw - 1360px) / 2 + 1rem));
}

.volunteer-page-hero::before,
.volunteer-page-activities::before,
.volunteer-page-interest::before,
.volunteer-page-voices::before {
  content: none;
}

.volunteer-page-hero {
  margin-top: -0.45rem;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4.1rem;
  padding-bottom: 4.1rem;
  background:
    linear-gradient(135deg, rgba(17, 35, 24, 0.3), rgba(20, 42, 29, 0.18)),
    radial-gradient(circle at 18% 24%, rgba(242, 207, 88, 0.08), transparent 22%),
    radial-gradient(circle at 82% 22%, rgba(102, 163, 114, 0.1), transparent 24%),
    url("images/background/volunteer_hero.jpeg") center center / cover no-repeat;
}

.volunteer-page-hero__copy {
  max-width: 44rem;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.volunteer-page-eyebrow {
  margin: 0;
  color: #f2cf58;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.volunteer-page-activities .volunteer-page-eyebrow,
.volunteer-page-voices .volunteer-page-eyebrow {
  color: #c8921e;
}

.volunteer-page-hero h1,
.volunteer-page-section-head h2,
.volunteer-activity-card h3,
.volunteer-interest-copy h2,
.volunteer-thanks h3,
.volunteer-thanks-card h4,
.volunteer-voice-card strong {
  margin: 0;
  font-family: "Marcellus", "Fraunces", serif;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.volunteer-page-hero h1 {
  color: #f7fbf6;
  font-size: clamp(3rem, 5.6vw, 5rem);
}

.volunteer-page-activities,
.volunteer-page-voices {
  background:
    radial-gradient(circle at top center, rgba(242, 207, 88, 0.1), transparent 24%),
    linear-gradient(180deg, #ffffff, #f7fbf5);
  color: #274734;
}

.volunteer-page-activities {
  padding-top: 2.35rem;
  padding-bottom: 2.4rem;
}

.volunteer-page-interest {
  background:
    radial-gradient(circle at 18% 22%, rgba(242, 207, 88, 0.1), transparent 20%),
    radial-gradient(circle at 82% 28%, rgba(102, 163, 114, 0.12), transparent 22%),
    linear-gradient(160deg, #132b1f, #0d1f16 68%, #09150f);
  color: #edf5ee;
}

.volunteer-page-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.volunteer-page-activities .volunteer-page-section-head {
  margin-bottom: 1rem;
}

.volunteer-page-section-head h2 {
  color: var(--brand-dark);
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
}

.volunteer-page-section-head > p {
  max-width: 35rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.volunteer-activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.volunteer-activity-card,
.volunteer-voice-card {
  border-radius: 28px;
  border: 1px solid rgba(53, 92, 65, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 252, 245, 0.93));
  box-shadow: 0 20px 40px rgba(34, 53, 40, 0.08);
}

.volunteer-activity-card {
  min-height: 220px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  perspective: 1400px;
  perspective-origin: center center;
  transform-style: preserve-3d;
  transition:
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.volunteer-activity-card:hover {
  box-shadow: 0 22px 38px rgba(34, 53, 40, 0.09);
}

.volunteer-activity-card:focus-visible {
  outline: 2px solid rgba(47, 122, 75, 0.24);
  outline-offset: 4px;
}

.volunteer-activity-card.is-flipped {
  border-color: rgba(47, 122, 75, 0.2);
}

.volunteer-activity-card__inner {
  position: relative;
  width: 100%;
  min-height: 220px;
  border-radius: 28px;
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.68s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.volunteer-activity-card.is-flipped .volunteer-activity-card__inner {
  transform: rotateY(180deg);
}

.volunteer-activity-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 28px;
  padding: 1.1rem 1rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: center center;
  text-align: center;
}

.volunteer-activity-card__face--front {
  transform: rotateY(0deg) translateZ(1px);
}

.volunteer-activity-card__face--back {
  transform: rotateY(180deg) translateZ(1px);
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(248, 252, 245, 0.98), rgba(238, 247, 239, 0.96));
}

.volunteer-activity-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
}

.volunteer-activity-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.volunteer-activity-card h3 {
  margin-top: 0.9rem;
  color: var(--brand-dark);
  font-size: 1.42rem;
}

.volunteer-activity-card__face--back p {
  margin-top: 0;
}

.volunteer-activity-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.volunteer-interest-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: 2rem;
  align-items: start;
}

.volunteer-interest-copy {
  max-width: 36rem;
}

.volunteer-interest-copy h2 {
  margin-top: 0.45rem;
  color: #f5f8f2;
  font-size: clamp(2.2rem, 4vw, 3.45rem);
}

.volunteer-thanks h3 {
  margin-top: 0.35rem;
  color: #f5f8f2;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  text-align: left;
}

.volunteer-interest-copy p:not(.volunteer-page-eyebrow) {
  margin: 0.9rem 0 0;
  color: rgba(237, 245, 238, 0.82);
  font-size: 1.08rem;
  line-height: 1.76;
}

.volunteer-interest-note {
  margin: 1rem 0 0;
  color: rgba(237, 245, 238, 0.82);
  font-size: 1.04rem;
  line-height: 1.72;
}

.volunteer-interest-contact {
  margin-top: 1.2rem;
  color: rgba(237, 245, 238, 0.84);
  font-size: 1rem;
  line-height: 1.65;
}

.volunteer-interest-contact a {
  color: #f2cf58;
}

.volunteer-form-shell {
  border-radius: 30px;
  border: 1px solid rgba(247, 251, 246, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 245, 0.94));
  box-shadow: 0 24px 44px rgba(7, 17, 12, 0.24);
  padding: 1rem;
}

.volunteer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.volunteer-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.volunteer-form__field--full {
  grid-column: 1 / -1;
}

.volunteer-form label {
  color: #355741;
  font-size: 0.92rem;
  font-weight: 700;
}

.volunteer-form input,
.volunteer-form select,
.volunteer-form textarea {
  width: 100%;
  min-height: 56px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(61, 89, 69, 0.14);
  background: rgba(255, 251, 244, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
}

.volunteer-form textarea {
  min-height: 104px;
  resize: vertical;
}

.volunteer-form input:focus,
.volunteer-form select:focus,
.volunteer-form textarea:focus {
  outline: 2px solid rgba(47, 122, 75, 0.18);
  outline-offset: 2px;
}

.volunteer-form .volunteer-form__submit {
  grid-column: 1 / -1;
  justify-self: center;
}

.volunteer-form__submit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.35rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f7a4b, #245c39);
  box-shadow: 0 14px 26px rgba(47, 122, 75, 0.16);
  color: #f7fbf6;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
}

.volunteer-form__submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.volunteer-form__feedback {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.volunteer-form__feedback.is-error {
  color: #b24a35;
}

.volunteer-form__feedback.is-success {
  color: #2f7a4b;
}

.volunteer-request-summary h3 {
  margin: 0.35rem 0 0;
  font-family: "Marcellus", "Fraunces", serif;
  color: #264734;
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.volunteer-request-summary__copy {
  margin: 0.65rem 0 0;
  color: #5a6f61;
  line-height: 1.7;
}

.volunteer-request-summary-card {
  margin-top: 1.35rem;
  border-radius: 28px;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(242, 207, 88, 0.16), transparent 26%),
    linear-gradient(160deg, #fffdf6, #f4fbf1);
  border: 1px solid rgba(53, 92, 65, 0.12);
  box-shadow:
    0 20px 36px rgba(34, 53, 40, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.volunteer-request-summary-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(53, 92, 65, 0.1);
}

.volunteer-request-summary-card__head p,
.volunteer-request-summary-card__head strong {
  margin: 0;
}

.volunteer-request-summary-card__head p {
  color: #c8921e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.volunteer-request-summary-card__head strong {
  color: #264734;
  font-size: 0.95rem;
}

.volunteer-request-summary-card__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  padding-top: 1rem;
}

.volunteer-request-summary-card__body div {
  display: grid;
  gap: 0.3rem;
}

.volunteer-request-summary-card__body span {
  color: #c8921e;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.volunteer-request-summary-card__body strong {
  color: #315f43;
  font-size: 1rem;
  line-height: 1.5;
}

.volunteer-request-summary-card__row--full {
  grid-column: 1 / -1;
}

.volunteer-request-summary__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.2rem;
}

.volunteer-thanks {
  margin-top: 1.8rem;
}

.volunteer-thanks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.15rem;
}

.volunteer-thanks-card {
  display: flex;
  gap: 0.95rem;
  align-items: center;
  min-height: 100%;
  padding: 1.1rem 1rem;
  border-radius: 24px;
  border: 1px solid rgba(247, 251, 246, 0.08);
  background: rgba(247, 251, 246, 0.05);
}

.volunteer-thanks-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  flex: 0 0 auto;
}

.volunteer-thanks-card__icon img {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}

.volunteer-thanks-card h4 {
  color: #f5f8f2;
  font-size: 1.3rem;
}

.volunteer-thanks-card p {
  margin: 0.45rem 0 0;
  color: rgba(237, 245, 238, 0.78);
  line-height: 1.7;
}

.volunteer-gallery-shell {
  position: relative;
  width: 100%;
  margin: 1.1rem 0 0;
}

.volunteer-gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.2rem 0;
}

.volunteer-gallery-track::-webkit-scrollbar {
  display: none;
}

.volunteer-gallery-item {
  display: block;
  flex: 0 0 calc(25% - 0.75rem);
  min-width: calc(25% - 0.75rem);
  margin: 0;
  overflow: hidden;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 22px;
  cursor: pointer;
  scroll-snap-align: start;
}

.volunteer-gallery-item img {
  display: block;
  width: 100%;
  min-width: 0;
  height: 220px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(53, 92, 65, 0.1);
  box-shadow: 0 18px 32px rgba(34, 53, 40, 0.08);
}

.volunteer-gallery-shell .scroller-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 247, 229, 0.88);
  box-shadow: 0 10px 28px rgba(72, 98, 57, 0.16);
  color: #2f6541;
  font-size: 1.55rem;
  font-weight: 800;
  cursor: pointer;
}

.volunteer-gallery-shell .scroller-arrow.prev {
  left: 0.8rem;
}

.volunteer-gallery-shell .scroller-arrow.next {
  right: 0.8rem;
}

.scroller-dots.volunteer-gallery-dots {
  margin-top: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.scroller-dots.volunteer-gallery-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(47, 122, 75, 0.18);
}

.scroller-dots.volunteer-gallery-dots .dot.active {
  background: #2f7a4b;
}

@media (max-width: 1080px) {
  .volunteer-page-section-head,
  .volunteer-interest-grid {
    grid-template-columns: 1fr;
  }

  .volunteer-page-section-head {
    flex-direction: column;
    align-items: start;
  }

  .volunteer-activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .volunteer-thanks-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .volunteer-page-hero,
  .volunteer-page-activities,
  .volunteer-page-interest,
  .volunteer-page-voices {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .volunteer-page-hero {
    min-height: 40vh;
  }

  .volunteer-page-section-head {
    margin-bottom: 1.3rem;
  }

  .volunteer-page-activities {
    padding-top: 1.85rem;
    padding-bottom: 1.9rem;
  }

  .volunteer-interest-copy .volunteer-page-eyebrow {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
  }

  .volunteer-activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .volunteer-form {
    grid-template-columns: 1fr;
  }

  .volunteer-request-summary-card__body {
    grid-template-columns: 1fr;
  }

  .volunteer-activity-card,
  .volunteer-form-shell {
    border-radius: 24px;
  }

  .volunteer-activity-card,
  .volunteer-activity-card__inner {
    min-height: 200px;
  }

  .volunteer-activity-card__face {
    border-radius: 24px;
    padding: 1rem 0.9rem;
  }

  .volunteer-activity-card__icon {
    width: 4rem;
    height: 4rem;
  }

  .volunteer-interest-copy h2 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    line-height: 1.15;
    text-wrap: balance;
    max-width: 12ch;
  }

  .volunteer-thanks h3 {
    font-size: 1.45rem;
  }

  .volunteer-thanks-card__icon img {
    width: 4rem;
    height: 4rem;
  }

  .volunteer-interest-note {
    font-size: 1rem;
  }

  .volunteer-gallery-item {
    flex-basis: calc(50% - 0.5rem);
    min-width: calc(50% - 0.5rem);
  }

  .volunteer-gallery-shell .scroller-arrow {
    display: none;
  }
}

@media (max-width: 520px) {
  .volunteer-gallery-item {
    flex-basis: 100%;
    min-width: 100%;
  }

  .volunteer-gallery-item img {
    height: 260px;
  }
}
