/* Why Join page */
.hero-why-join { background-image: url('/res/img/hero-why-join.webp'); }
.hero-why-join .hero-photo { background-image: url('/res/img/hero-why-join-mobile.webp'); }

/* photo + text halves, alternating sides */
/* a full screen each (min, so the text never overflows on short or narrow screens) */
.feature { display: flex; min-height: 100vh; }
/* exact halves (a 0 basis would hand the text column its padding on top of half the width) */
.feature-pic { flex: 0 0 50%; background: #ccc center / cover no-repeat; }
.feature-text { flex: 0 0 50%; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 40px 60px; }
.feature-text p, .feature-text ul { font-size: 20px; line-height: 1.8; }
.feature-text ul { margin: 0; padding-left: 30px; }
.feature-flip .feature-pic { order: 2; }
.feature-text h2 { font-size: 56px; }

/* "More than a committee" band: right under the last feature, the group cut-out standing on its bottom edge (just over the top, as in the design) */
.cta-community { position: relative; display: flex; min-height: 450px; padding: 0; background: url('/res/img/bg-blue1.webp') center / cover no-repeat; color: #fff; }
.cta-community .cta-pic { flex: 1 1 0; }
.cta-community .cta-pic img { position: absolute; left: 0; bottom: 0; width: 100%; max-width: 100%; }
.cta-community .cta-text { flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: inherit; padding: 80px; }
.cta-community h2 { color: #fff; }
.cta-community p { font-size: 18px; font-weight: 300; line-height: 1.6; padding-bottom: 10px; }

/* donor / recipient story cards */
/* cards in a row share the tallest one's height */
.dr-stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 40px; padding: 20px 40px; }
.dr-story { overflow: hidden; border: 1px solid #ffd166; border-radius: var(--radius-md); background: var(--beige-50); filter: drop-shadow(0 4px 2px rgba(0,0,0,.25)); }
.dr-pic { height: 350px; overflow: hidden; border-bottom: 8px solid var(--gold); }
.dr-pic img { width: 100%; height: auto; }
.dr-text { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 40px 60px; text-align: center; }
.dr-text .meet { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 18px; text-transform: uppercase; color: var(--navy); }
.dr-text .meet::before, .dr-text .meet::after { content: ''; flex: 1; border-top: 1px solid var(--gold); }
.dr-text h3 { font: 400 40px/1 var(--font-display); color: var(--navy); }
.dr-text p { font-size: 18px; font-weight: 300; line-height: 1.6; color: var(--gold); }

.altruism { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: var(--pad-global) 100px 60px; text-align: center; }
.altruism h2 { font-size: 40px; }
.altruism .lead { max-width: 1166px; padding-bottom: 30px; color: #000; }

@media (max-width: 1200px) {
    .dr-stories { gap: 20px; }
    .dr-text { padding: 30px 20px 40px; }
}
@media (max-width: 991px) {
    .dr-stories { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .feature, .feature-flip { flex-direction: column; min-height: 0; }
    .feature-flip .feature-pic { order: 0; }
    .feature-pic, .feature-text { flex-basis: auto; }
    .feature-pic { aspect-ratio: 1; }
    .feature-text { padding: 30px 20px 40px; }
    .feature-text h2 { font-size: 40px; }
    .feature-text p, .feature-text ul { font-size: 16px; line-height: 1.6; }
    .cta-community { flex-direction: column; margin-top: 0; padding: 0; }
    .cta-community { min-height: 0; }
    .cta-community .cta-pic img { position: static; width: 100%; max-width: none; }
    .cta-community .cta-text { padding: 30px 20px 40px; }
    .cta-community .btn, .altruism .btn { width: 100%; padding: 20px 24px; }
    .dr-stories { padding: 20px; }
    .dr-pic { height: auto; aspect-ratio: 1; }
    .altruism { padding: 40px 20px; }
}
