/* Membership numbers band (membership.php) */
.ms { padding: 56px 20px 8px; }
.ms-inner {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 1200px; margin: 0 auto; padding: 44px 40px 40px;
  border-radius: 28px; color: #fff;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(245, 197, 24, .18), transparent 60%),
    radial-gradient(500px 320px at 0% 100%, rgba(63, 174, 90, .35), transparent 60%),
    linear-gradient(135deg, #033d1c 0%, #05652f 55%, #0a7f43 100%);
  box-shadow: 0 30px 60px -30px rgba(3, 61, 28, .65);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* soft tea-leaf rings in the background */
.ms-inner::before, .ms-inner::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
}
.ms-inner::before { width: 420px; height: 420px; right: -120px; top: -180px; box-shadow: 0 0 0 40px rgba(255, 255, 255, .025); }
.ms-inner::after { width: 260px; height: 260px; left: -90px; bottom: -130px; box-shadow: 0 0 0 30px rgba(255, 255, 255, .03); }

.ms-head { text-align: center; margin-bottom: 30px; }
.ms-kicker {
  display: inline-block; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px;
  background: rgba(245, 197, 24, .16); color: #fde68a; border: 1px solid rgba(245, 197, 24, .35);
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.ms-head h2 { margin: 0; font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; line-height: 1.3; color: #fff; }
.ms-head h2 .ms-num { color: #facc15; font-variant-numeric: tabular-nums; }

.ms-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px;
}
.ms-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 22px 10px 20px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .3s ease, border-color .3s ease, box-shadow .35s ease;
}
.ms-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .08));
  border-color: rgba(245, 197, 24, .55);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .6), 0 0 0 1px rgba(245, 197, 24, .25);
}
.ms-icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 14px;
  background: linear-gradient(135deg, #facc15, #f59e0b); color: #053d1d; font-size: 18px;
  box-shadow: 0 8px 16px -8px rgba(245, 158, 11, .8);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.ms-card:hover .ms-icon { transform: rotate(-8deg) scale(1.08); }
.ms-card .ms-num { font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ms-label { margin-top: 8px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .82); line-height: 1.3; }

/* entrance: cards rise in one after another (only when JavaScript is on) */
.ms-js .ms-card, .ms-js .ms-head { opacity: 0; transform: translateY(18px); }
.ms-js.is-visible .ms-head { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.ms-js.is-visible .ms-card {
  opacity: 1; transform: none;
  transition: opacity .6s ease calc(var(--i) * 90ms + 100ms), transform .6s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 90ms + 100ms),
              background .3s ease, border-color .3s ease, box-shadow .35s ease;
}
.ms-js.is-visible .ms-card:hover { transform: translateY(-6px); transition-delay: 0s; }

/* ── tablets and phones ── */
@media (max-width: 1100px) { .ms-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .ms { padding: 36px 14px 4px; }
  .ms-inner { padding: 30px 16px 18px; border-radius: 22px; }
  .ms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ms-card:last-child { grid-column: 1 / -1; }
  .ms-card { padding: 18px 8px 16px; border-radius: 16px; }
  .ms-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; margin-bottom: 10px; }
  .ms-label { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-js .ms-card, .ms-js .ms-head { opacity: 1; transform: none; }
  .ms-card, .ms-icon { transition: none; }
}

/* membership page on phones: use the full width (the page had 100px side padding) */
@media (max-width: 768px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .container1 { padding: 28px 0; }
  .container1 h1 { font-size: 1.7rem; }
  .container1 p { font-size: 1.05rem; }
}

/* "Join EATTA" steps on phones: number on top, full-width text, download links as tidy buttons */
@media (max-width: 600px) {
  .container2 { padding: 32px 14px; }
  .step { flex-direction: column; padding: 22px 18px; }
  .step-number { margin: 0 0 14px 0 !important; }
  .step-title { font-size: 1.25rem; }
  .step .membership-forms {
    display: inline-block; margin: 12px 8px 0 0 !important; padding: 10px 14px; border-radius: 10px; line-height: 1.3;
  }
}
