/* "Become a Member", "Join our WhatsApp Group", "Follow Us on Instagram" and
   "Connect With Us" sections: full-bleed breakouts below the newsroom,
   following the same pattern (.site-main constrains to --max-width, so
   these escape it the same way .newsroom does). Warm cream backgrounds,
   alternating between two tones, continue the newsroom's palette instead
   of dropping back to plain white. */

.member,
.whatsapp-cta,
.instagram,
.connect {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  scroll-margin-top: 5rem;
}

.member,
.instagram {
  background: #f3ead8;
  padding: 3.5rem 0;
}

.whatsapp-cta,
.connect {
  background: #eee2c9;
}

.connect {
  padding: 3.5rem 0;
  /* .connect is the last section before the footer; .site-main still
     applies its usual bottom padding around it (same reason .hero
     cancels site-main's top padding with a matching negative margin),
     which left a stripe of white showing between this section's cream
     background and the footer's. Cancel it here the same way. */
  margin-bottom: -1.25rem;
}

.member-inner,
.instagram-inner,
.connect-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--nr-pad, clamp(1.25rem, 4vw, 2rem));
  text-align: center;
}

.member-eyebrow,
.instagram-eyebrow,
.connect-eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.member h2,
.instagram h2,
.connect h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
}

.member-text,
.instagram-text {
  margin: 0 0 1.75rem;
  color: var(--fg);
  font-family: "Lora", serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ---------- WhatsApp: short banner, not a full section ---------- */

.whatsapp-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem var(--nr-pad, clamp(1.25rem, 4vw, 2rem));
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.whatsapp-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
}

.whatsapp-icon .social-icon {
  width: 26px;
  height: 26px;
}

.whatsapp-copy {
  flex: 1 1 auto;
}

.whatsapp-copy h3 {
  margin: 0 0 0.2rem;
  font-family: "Lora", serif;
  font-size: 1.15rem;
}

.whatsapp-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.btn-whatsapp {
  flex-shrink: 0;
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  opacity: 0.85;
}

@media (max-width: 640px) {
  .whatsapp-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Instagram embed ---------- */

.instagram-embed {
  display: flex;
  justify-content: center;
}

.instagram-embed .instagram-media {
  width: 100% !important;
}

/* ---------- Connect With Us ---------- */

.connect-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.connect-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.connect-link:hover {
  background: #eef1ff;
  border-color: var(--accent);
  color: var(--accent);
}
