:root {
  --color-haa-green: #01aa01;
  --color-green-dark: #339e43;
  --color-haa-pink: #d81473;
  --color-near-black: #1D1D1B;
  --color-dark-gray: #666666;
  --color-medium-gray: #999999;
  --color-light-gray: #CCCCCC;
  --color-off-white: #F5F5F5;
  --color-white: #FFFFFF;
  --green: #01aa01;
  --green-dark: #339e43;
  --green-light: #e8f5ec;
  --pink: #d81473;
  --pink-dark: #b01060;
  --purple: #5a2d82;
  --text: #333;
  --text-light: #666;
  --bg-light: #f7f7f7;
  --bg-grey: #ededed;
  --white: #fff;
  --border: #e0e0e0;
  --header-height: 80px;
  --footer-height: 30px;
  --container-margin: clamp(40px, 12vw, 172px);
  --container-outer-max: 1400px;
  --snap-height: 100vh;
  --snap-pad-y: 32px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 120px;
}

@supports (height: 100svh) {
  :root {
    --snap-height: 100svh;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.home-v3 {
  font-family: "Inter", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: calc(100% - var(--container-margin) - var(--container-margin));
  max-width: var(--container-outer-max, 1400px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.section-frame {
  width: calc(100% - var(--container-margin) - var(--container-margin));
  max-width: var(--container-outer-max, 1400px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
}

body.home-v3
  :is(
    .ha-donate-btn,
    .cc-donate,
    .donate-btn,
    .project-donate-btn,
    .see-all-btn,
    .see-emergencies-btn,
    .view-all-btn,
    .fundraiser-donate-btn,
    .start-fundraiser-btn,
    .fundraiser-view-all,
    .fundraiser-btn,
    .globe-v2 .donateBtn
  ) {
  background: var(--pink);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  white-space: nowrap;
}

body.home-v3
  :is(
    .ha-donate-btn,
    .cc-donate,
    .donate-btn,
    .project-donate-btn,
    .see-all-btn,
    .see-emergencies-btn,
    .view-all-btn,
    .fundraiser-donate-btn,
    .start-fundraiser-btn,
    .fundraiser-view-all,
    .fundraiser-btn,
    .globe-v2 .donateBtn
  ):hover {
  background: var(--pink);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(216, 20, 115, 0.5);
}

/* ===== SNAP SCROLLING ===== */
/* Desktop uses native CSS snap so wheel/trackpad momentum stays natural. */
html:has(body.home-v3) {
  scroll-padding-top: var(--header-height, 80px);
  scroll-behavior: smooth;
}

body.home-v3 {
  overflow-x: hidden;
  overscroll-behavior-y: auto;
}

.snap-panel {
  min-height: var(--snap-panel-height, var(--snap-height, 100vh));
  height: var(--snap-panel-height, var(--snap-height, 100vh));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  box-sizing: border-box;
}

@media (min-width: 901px) {
  html:has(body.home-v3) {
    scroll-snap-type: y mandatory;
    --snap-panel-height: calc(var(--snap-height, 100vh) - var(--header-height));
  }

  .snap-panel {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  body.home-v3 .footer-ribbon {
    display: flex !important;
    position: sticky;
    inset: auto;
    bottom: 0;
    z-index: 100;
    scroll-snap-align: none;
  }

  body.home-v3 .main-footer {
    margin-top: calc(-1 * var(--footer-height));
    position: relative;
    z-index: 101;
    scroll-margin-bottom: calc(var(--footer-height) + var(--space-2));
    scroll-snap-align: end;
    scroll-snap-stop: normal;
  }

  body.home-v3 .footer-copyright {
    position: relative;
    z-index: 101;
    scroll-snap-align: none;
  }
}

body.home-v3 section.snap-panel {
  padding-top: var(--header-height);
  padding-bottom: var(--footer-height);
}

@media (min-width: 901px) {
  body.home-v3 section.snap-panel {
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.home-v3),
  body.home-v3 {
    scroll-behavior: auto;
  }
}

/* ===== SIDE DOT NAV ===== */
.snap-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.snap-dots a {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid transparent;
  transition: all 0.25s;
  position: relative;
  display: block;
}

.snap-dots a::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
}

.snap-dots a.active {
  background: var(--green);
  transform: scale(1.4);
}

.snap-dots a:hover::after {
  content: attr(data-name);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
  pointer-events: none;
}

.snap-dots a.active:hover::after {
  transform: translateY(-50%) scale(0.71);
}

/* ===== TURNSTILE PANE ===== */
.turnstile {
  --ts-card-w: clamp(340px, 31vw, 420px);
  --ts-card-h: clamp(418px, 60.5vh, 660px);
  --ts-panel-pad-top: var(--header-height);
  --ts-floating-footer-h: var(--footer-height);
  --ts-pager-footer-gap: var(--space-6);
  position: relative;
  background: #ffffff;
  color: #1d1d1b;
  overflow: clip;
  padding: var(--ts-panel-pad-top) 0
    calc(var(--ts-floating-footer-h) + var(--ts-pager-footer-gap));
  justify-content: flex-start;
  transition: background 1s ease;
}

body.home-v3 section.turnstile.snap-panel {
  padding-bottom: calc(
    var(--ts-floating-footer-h) + var(--ts-pager-footer-gap)
  );
}

@media (min-width: 901px) {
  .turnstile {
    --ts-panel-pad-top: 0px;
  }
}

.turnstile.bg-wells,
.turnstile.bg-emergency {
  background: #cce3f0;
}

.turnstile.bg-orphan {
  background: #f2d5c4;
}

.turnstile.bg-zakat {
  background: #e4ccde;
}

.ts-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: background 1s ease;
}

.turnstile.bg-wells .ts-bg,
.turnstile.bg-emergency .ts-bg {
  background:
    linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.70) 100%),
    radial-gradient(
      ellipse at 20% 20%,
      rgba(0, 85, 128, 0.35) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 80% 80%,
      rgba(0, 85, 128, 0.20) 0%,
      transparent 55%
    );
}

.turnstile.bg-orphan .ts-bg {
  background:
    linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.70) 100%),
    radial-gradient(
      ellipse at 20% 20%,
      rgba(234, 138, 44, 0.35) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 80% 80%,
      rgba(234, 138, 44, 0.20) 0%,
      transparent 55%
    );
}

.turnstile.bg-zakat .ts-bg {
  background:
    linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.70) 100%),
    radial-gradient(
      ellipse at 20% 20%,
      rgba(87, 8, 65, 0.35) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 80% 80%,
      rgba(87, 8, 65, 0.20) 0%,
      transparent 55%
    );
}

.ts-head {
  text-align: center;
  position: relative;
  z-index: 2;
  width: calc(100% - var(--container-margin) - var(--container-margin));
  max-width: var(--container-outer-max, 1400px);
  margin-bottom: var(--space-8);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-6) 0 0;
  box-sizing: border-box;
}

#snap-turnstile > .ts-head {
  z-index: 1 !important;
}

.ts-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.62);
  font-weight: 600;
  margin-bottom: 14px;
}

.ts-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 14px;
}

.ts-blurb {
  max-width: 680px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.65);
}

/* STAGE — turnstile carousel */
.ts-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - var(--container-margin) - var(--container-margin));
  flex: 1 1 0;
  max-height: var(--ts-card-h);
  max-width: var(--container-outer-max, 1400px);
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
  perspective: 2400px;
}

.ts-track {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  transform-style: preserve-3d;
}

.ts-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--ts-card-w);
  height: var(--ts-card-h);
  min-height: 0;
  margin-left: calc(var(--ts-card-w) / -2);
  border-radius: 18px;
  background: white;
  color: #222;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.7s cubic-bezier(0.65, 0.04, 0.25, 0.98),
    opacity 0.5s,
    filter 0.5s;
  cursor: pointer;
}

/* States — center, left, right, far-left, far-right */
.ts-card.center {
  transform: translateX(0) translateY(-50%) translateZ(0) rotateY(0deg) scale(1);
  z-index: 5;
  opacity: 1;
  filter: none;
  cursor: default;
}

.ts-card.left {
  transform: translateX(calc(var(--ts-card-w) * -1.08)) translateY(-50%)
    translateZ(-260px) rotateY(32deg) scale(0.5);
  z-index: 3;
  opacity: 0.7;
  filter: saturate(0.6) brightness(0.8);
}

.ts-card.right {
  transform: translateX(calc(var(--ts-card-w) * 1.08)) translateY(-50%)
    translateZ(-260px) rotateY(-32deg) scale(0.5);
  z-index: 3;
  opacity: 0.7;
  filter: saturate(0.6) brightness(0.8);
}

.ts-card.hidden {
  transform: translateX(0) translateY(-50%) translateZ(-400px) scale(0.5);
  opacity: 0;
  pointer-events: none;
}

.ts-card.left:hover,
.ts-card.right:hover {
  filter: saturate(0.85) brightness(0.95);
  opacity: 0.95;
}

.ts-card.left *,
.ts-card.right * {
  pointer-events: none;
}

.ts-card.center * {
  pointer-events: auto;
}

.ts-side-hit {
  position: absolute;
  top: 50%;
  bottom: auto;
  height: clamp(210px, 62%, 300px);
  max-height: calc(100% - 12px);
  transform: translateY(-50%);
  z-index: 4;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.ts-side-hit:hover,
.ts-side-hit:focus,
.ts-side-hit:active {
  background: transparent !important;
  box-shadow: none !important;
}

.ts-side-hit-left {
  left: 0;
  width: calc((100% - var(--ts-card-w)) / 2);
}

.ts-side-hit-right {
  right: 0;
  width: calc((100% - var(--ts-card-w)) / 2);
}

/* Card photo header */
.ts-card-photo {
  position: relative;
  height: clamp(140px, calc(var(--ts-card-h) * 0.4), 200px);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  padding: 14px 18px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.ts-card-title {
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.ts-side-eyebrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  align-self: flex-start;
  margin-bottom: 6px;
  color: white;
}

.ts-eyebrow-gold {
  color: #f0c878;
  border-color: rgba(240, 200, 120, 0.5);
}

/* Live tag (emergency only) */
.live-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(233, 30, 99, 0.18);
  border: 1px solid rgba(233, 30, 99, 0.5);
  color: #ff8eb0;
  padding: 5px 11px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3d7a;
  box-shadow: 0 0 0 0 rgba(255, 61, 122, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 61, 122, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 61, 122, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 61, 122, 0);
  }
}

/* Crisis mini panel */
.crisis-mini {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
  backdrop-filter: blur(6px);
}

.crisis-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.crisis-row strong {
  font-size: 14px;
  font-weight: 600;
}

.crisis-meta {
  font-size: 10px;
  opacity: 0.75;
}

.crisis-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.crisis-bar-fill {
  height: 100%;
  background: var(--pink);
  transition: width 0.6s ease;
}

.crisis-switch {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cs {
  padding: 5px 11px;
  background: transparent;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cs:hover {
  background: rgba(0, 0, 0, 0.05);
}

.cs.active {
  background: #1d1d1b;
  color: white;
  border-color: #1d1d1b;
}

/* Orphan card photo */
.orphan-photo {
  padding: 0;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(180deg, #282828, #0f0f0f);
}

.orphan-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orphan-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40, 40, 40, 0.50), rgba(15, 15, 15, 0.82));
  z-index: 1;
}

.orphan-meta-overlay {
  position: relative;
  z-index: 2;
  padding: 34px 20px 16px;
  width: 100%;
}

.ts-card-meta-overlay {
  position: relative;
  z-index: 2;
  padding: 34px 20px 16px;
  width: 100%;
}

.orphan-meta-overlay .ts-card-title {
  margin: 0;
}

.turnstile .ts-wells .ts-card-photo,
.turnstile .ts-well .ts-card-photo,
.turnstile .ts-emergency .ts-card-photo,
.turnstile .ts-orphan .ts-card-photo,
.turnstile .ts-zakat .ts-card-photo {
  padding: 0;
  justify-content: flex-end;
  overflow: hidden;
}

.turnstile .ts-wells .ts-card-title,
.turnstile .ts-well .ts-card-title,
.turnstile .ts-emergency .ts-card-title,
.turnstile .ts-orphan .ts-card-title,
.turnstile .ts-zakat .ts-card-title {
  margin: 0;
}

.om-name {
  font-size: 13px;
  opacity: 0.92;
  font-weight: 500;
  margin-top: 6px;
}

/* Zakat card photo */
.zakat-photo {
  padding: 0;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(180deg, #282828, #0f0f0f);
}

.zakat-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zakat-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40, 40, 40, 0.50), rgba(15, 15, 15, 0.82));
  z-index: 1;
}
.zakat-cats-mini {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.zakat-cats-mini span {
  font-size: 10px;
  padding: 4px 9px;
  background: rgba(212, 161, 62, 0.12);
  border: 1px solid rgba(212, 161, 62, 0.3);
  color: #e6c478;
  border-radius: 14px;
  font-weight: 500;
}

/* Card body */
.ts-card-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 18px 12px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  scrollbar-width: none;
}

.ts-card-body::-webkit-scrollbar {
  display: none;
}

.ts-card-footer {
  flex-shrink: 0;
  padding: 8px 18px 14px;
}

.ts-card-sub {
  font-size: 12px;
  opacity: 1;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 4px;
  line-height: 1.45;
  max-width: 280px;
}

.ac-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666666;
  font-weight: 600;
  margin-bottom: 8px;
}

.ac-foot {
  text-align: center;
  font-size: 11px;
  color: #666666;
  margin-top: 10px;
  font-weight: 500;
}

.ac-foot i {
  color: var(--green);
  margin-right: 4px;
}

.huge-btn {
  width: 100%;
  padding: 10px 12px;
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.15s,
    background 0.2s;
  font-family: inherit;
  letter-spacing: 0.3px;
  margin-top: auto;
}

.huge-btn:hover {
  background: var(--pink-dark);
  transform: translateY(-1px);
}

.huge-btn.green-btn {
  background: var(--green);
}

.huge-btn.green-btn:hover {
  background: var(--green-dark);
}

.huge-btn.gold-btn {
  background: #8a6200;
}

.huge-btn.gold-btn:hover {
  background: #6e4e00;
}

/* Shared simple form fields */
.simple-field {
  margin-bottom: 7px;
}

.simple-field label {
  display: block;
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}

.ts-zakat .simple-field label {
  color: #7a5200;
}

.simple-select-wrap {
  position: relative;
  width: 100%;
}

.simple-select-wrap select.simple-select {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.simple-select-btn {
  width: 100%;
  padding: 7px 12px;
  background: #f5f5f5;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #222;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.simple-select-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-select-btn svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.simple-select-wrap.open .simple-select-btn {
  border-color: var(--green);
  background: white;
}

.simple-select-wrap.open .simple-select-btn svg {
  transform: rotate(180deg);
}

.simple-select-menu {
  position: fixed;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 6px;
  z-index: 99999;
  max-height: 210px;
  overflow-y: auto;
  display: none;
}

body > .simple-select-menu {
  display: block;
}

.simple-select-option {
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.1s;
  color: #222;
}

.simple-select-option:hover {
  background: #e8f5e9;
}

.simple-select-option.selected {
  background: #c8e6c9;
  color: #1f7a30;
  font-weight: 600;
}

.simple-search {
  padding: 0 0 4px;
}
.simple-search-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  color: #222;
  background: #f5f5f5;
  outline: none;
  box-sizing: border-box;
}
.simple-search-input:focus {
  border-color: var(--color-haa-green);
  background: #fff;
}

.ts-zakat .simple-select:focus {
  border-color: #c89530;
}

/* Emergency: amount pills + custom */
.amount-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.amt-pill {
  padding: 7px 0;
  background: #f5f5f5;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  color: #222;
}

.amt-pill:hover {
  background: #ececec;
}

.amt-pill.active {
  background: white;
  border-color: var(--pink);
  color: var(--pink);
}

.custom-amount {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 0 12px;
  border: 1.5px solid transparent;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.custom-amount:focus-within {
  border-color: var(--pink);
  background: white;
}

.custom-amount span {
  font-size: 13px;
  color: #666666;
  font-weight: 500;
}

.custom-amount input {
  flex: 1;
  min-width: 0;
  padding: 7px 8px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 12px;
  font-weight: 500;
  color: #222;
  font-family: inherit;
  width: 100%;
}

/* Emergency: quantity stepper */
.em-qty-section {
  border-radius: 10px;
  margin-bottom: 4px;
}

.em-qty-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.em-qty-region {
  font-size: 13px;
  font-weight: 700;
  color: #222;
}

.em-qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0;
}

.em-qty-stepper .stepper-btn {
  flex: 0 0 56px;
  height: 48px;
  border-radius: 0;
  border: none;
  background: #f5f5f5;
  font-size: 20px;
  width: auto;
}

.em-qty-stepper .stepper-val {
  flex: 1;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  border-left: 1.5px solid #ddd;
  border-right: 1.5px solid #ddd;
  padding: 8px 0;
}

/* Orphan: simplified card — copy, hadith, stat boxes */
.orphan-copy {
  font-size: 13px;
  line-height: 1.4;
  color: #555;
  margin-bottom: 8px;
}

.orphan-hadith {
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
  color: #555;
  margin: 2px 0 8px;
  padding-top: 8px;
  border-top: 1px solid #ececec;
}

/* Orphan: give the content more breathing room on larger viewports (MacBook and up) */
@media (min-width: 1200px) {
  .orphan-copy {
    margin-bottom: 14px;
  }
  .orphan-stats {
    margin-bottom: 14px;
    gap: 12px;
  }
  .stat-box {
    padding: 14px 12px;
  }
  .orphan-hadith {
    margin: 0 0 14px;
    padding-top: 10px;
  }
}

@media (min-width: 1200px) {
  .partner-track {
    grid-template-rows: repeat(3, clamp(150px, 17vh, 200px));
  }
  .partner-track .partner-logo {
    padding: 20px;
  }
}

.hadith-src {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  color: #6b7b6b;
}

.orphan-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.stat-box {
  background: linear-gradient(135deg, #fef3e6, #fde0b5);
  border: 1.5px solid #EA8A2C;
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
}

.stat-num {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  color: #EA8A2C;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-unit {
  font-size: 11px;
  font-weight: 600;
  color: #b5640f;
  margin-top: 2px;
}

.ts-orphan .huge-btn {
  margin-top: auto;
}

.ts-orphan .ts-card-body {
  padding: 10px 18px 12px;
}

.ts-link {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: underline;
}

.ts-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.ts-link-gold {
  color: #570841;
}

.ts-link-gold:hover {
  color: #3d0530;
}

/* Zakat: large input */
.zk-input {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 0 14px;
  border: 1.5px solid transparent;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.zk-input:focus-within {
  border-color: #570841;
  background: white;
}

.zk-input span {
  font-size: 14px;
  color: #666666;
  font-weight: 500;
}

.zk-input input {
  flex: 1;
  padding: 10px 8px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  font-family: inherit;
  width: 100%;
}

.zk-input-large input {
  font-size: 20px;
  padding: 12px 8px;
  font-weight: 700;
}

.ts-zakat .simple-field {
  margin-bottom: 7px;
}

.ts-zakat .ts-link {
  margin-top: 6px;
  text-align: left;
}

.ts-zakat .ts-card-body {
  padding: 10px 18px 12px;
}

/* ===== WELL CARD ===== */
.ts-well .ts-card-body {
  padding: 10px 18px 12px;
}

/* Mode toggle (Build / Contribute) */
.well-mode-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}

.well-mode-row::before {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: #005580;
  border-radius: 6px;
  transition: transform 0.2s ease;
  z-index: 0;
  pointer-events: none;
}

.well-mode-row.mode-contribute::before {
  transform: translateX(100%);
}

.well-mode-btn {
  padding: 8px 0;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background 0.15s ease;
  font-family: inherit;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.well-mode-btn:not(.active):hover {
  background: rgba(0, 0, 0, 0.05);
}

.well-mode-btn.active {
  color: #ffffff;
}

/* Help text under well type */
.well-help {
  font-size: 11px;
  color: #666666;
  line-height: 1.45;
  margin-top: 5px;
}

/* Full-cost total box */
.well-total {
  background: linear-gradient(135deg, #e6f5df, #d4edcb);
  border: 1.5px solid #9fcf8a;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.well-total-label {
  font-size: 11px;
  color: #3d6e28;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.well-total-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  font-family: "Inter", sans-serif;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Contribute amount row: 3 pills + custom */
.well-amount-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.4fr;
  gap: 6px;
}

.well-amt-pill {
  padding: 7px 0;
  background: #f5f5f5;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  color: #222;
}

.well-amt-pill:hover {
  background: #ececec;
}

.well-amt-pill.active {
  background: white;
  border-color: #005580;
  color: #005580;
}

.well-custom-amt {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 0 10px;
  border: 1.5px solid transparent;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.well-custom-amt:focus-within {
  border-color: #005580;
  background: white;
}

.well-custom-amt span {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

.well-custom-amt input {
  flex: 1;
  padding: 7px 6px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 12px;
  font-weight: 500;
  color: #222;
  font-family: inherit;
  width: 100%;
}

/* Well card button - scoped height for short screens */
.ts-well .huge-btn {
  margin-top: auto;
  min-height: 40px;
}

/* Short screen adjustments */
@media (min-width: 901px) and (max-height: 700px) {
  .ts-well .ts-card-body {
    padding: 6px 14px 6px;
  }
  .ts-orphan .ts-card-body {
    padding: 6px 14px 6px;
  }
  .ts-zakat .ts-card-body {
    padding: 6px 14px 6px;
  }

  .ts-well .simple-field {
    margin-bottom: 4px;
  }

  .ts-well .simple-field label {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .ts-well .simple-select-btn {
    padding: 5px 9px;
    font-size: 11px;
  }

  .ts-well .well-mode-btn {
    padding: 5px 0;
    font-size: 11px;
  }

  .ts-well .well-help {
    font-size: 10px;
    margin-top: 3px;
  }

  .ts-well .well-total {
    padding: 7px 10px;
  }

  .ts-well .well-total-val {
    font-size: 18px;
  }

  .ts-well .well-amt-pill {
    padding: 5px 0;
    font-size: 11px;
  }

  .ts-well .well-custom-amt {
    padding: 0 8px;
  }

  .ts-well .well-custom-amt input {
    padding: 5px 4px;
    font-size: 11px;
  }

  .ts-well .huge-btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
  }
}

@media (min-width: 901px) and (max-height: 580px) {
  .ts-well .ts-card-body {
    padding: 4px 10px 4px;
  }
  .ts-orphan .ts-card-body {
    padding: 4px 10px 4px;
  }
  .ts-zakat .ts-card-body {
    padding: 4px 10px 4px;
  }

  .ts-well .well-total {
    padding: 5px 8px;
    margin-bottom: 4px;
  }

  .ts-well .well-total-val {
    font-size: 16px;
  }

  .ts-well .well-amount-row {
    gap: 4px;
  }
}

/* Arrows */
.ts-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #333;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.ts-arrow:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-50%) scale(1.08);
}

.ts-arrow-left {
  left: 30px;
}

.ts-arrow-right {
  right: 30px;
}

/* Pager dots */
.ts-pager {
  position: relative;
  z-index: 2;
  width: calc(100% - var(--container-margin) - var(--container-margin));
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--space-8);
  padding: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.ts-dot {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(5px, 1vh, 8px);
  color: rgba(0, 0, 0, 0.4);
  transition: color 0.2s;
  font-family: inherit;
}

.ts-dot:hover,
.ts-dot:focus,
.ts-dot:active {
  background: transparent !important;
  box-shadow: none !important;
}

.ts-dot span {
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.3s;
}

.ts-dot label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
}

.ts-dot.active {
  color: #1d1d1b;
}

.ts-dot.active span {
  background: var(--green);
}

@media (min-width: 901px) and (max-height: 760px) {
  .turnstile {
    --ts-card-h: clamp(320px, calc(var(--snap-height, 720px) - 300px), 400px);
    --ts-pager-footer-gap: var(--space-4);
  }

  .turnstile .ts-head {
    padding-top: var(--space-2);
    margin-bottom: 6px;
  }

  .turnstile .ts-title {
    font-size: clamp(24px, 2.6vw, 32px);
    margin-bottom: 4px;
  }

  .turnstile .ts-blurb {
    font-size: 12px;
    line-height: 1.4;
    max-width: 680px;
  }

  .turnstile .ts-card-photo {
    height: 100px;
    padding: 10px 14px;
  }

  .turnstile .ts-card-title {
    font-size: clamp(22px, 2.1vw, 28px);
    margin-bottom: 4px;
  }

  .turnstile .ts-card-sub {
    font-size: 11px;
    margin-top: 2px;
  }

  .turnstile .ts-card-body {
    padding: 8px 14px 10px;
  }

  .turnstile .simple-field {
    margin-bottom: 5px;
  }

  .turnstile .simple-field label {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .turnstile .simple-select-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .turnstile .huge-btn {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
  }

  /* Orphan card — match wells card sizing */
  .ts-orphan .orphan-copy {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .ts-orphan .orphan-hadith {
    font-size: 10px;
    margin: 0 0 6px;
    padding-top: 6px;
  }

  .ts-orphan .orphan-stats {
    gap: 4px;
    margin-bottom: 6px;
  }

  .ts-orphan .stat-box {
    padding: 4px 6px;
  }

  .ts-orphan .stat-num {
    font-size: 16px;
  }

  .ts-orphan .stat-unit {
    font-size: 10px;
  }

  /* Wells card */
  .turnstile .well-mode-row {
    gap: 4px;
  }

  .turnstile .well-mode-btn {
    padding: 7px 10px;
    font-size: 12px;
  }

  .turnstile .well-total {
    padding: 8px 12px;
    margin-bottom: 8px;
  }

  .turnstile .well-total-val {
    font-size: 22px;
  }

  .turnstile .ts-pager {
    margin-top: auto;
  }
}

@media (min-width: 901px) and (max-height: 700px) {
  .turnstile {
    --ts-card-h: clamp(280px, calc(var(--snap-height, 620px) - 257px), 420px);
    --ts-panel-pad-top: 0px;
    --ts-pager-footer-gap: var(--space-5);
  }

  .turnstile .ts-head {
    margin-bottom: 10px;
  }

  .turnstile .ts-eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .turnstile .ts-title {
    margin-bottom: 8px;
    font-size: clamp(26px, 2.6vw, 34px);
  }

  .turnstile .ts-blurb {
    max-width: 660px;
    font-size: 12px;
    line-height: 1.45;
  }

  .turnstile .ts-card-photo {
    height: 100px;
    padding: 10px 14px;
  }

  .turnstile .ts-card-title {
    margin-bottom: 4px;
    font-size: clamp(22px, 2.1vw, 26px);
  }

  .turnstile .ts-card-sub {
    margin-top: 2px;
    font-size: 11px;
  }

  .turnstile .ts-card-body {
    padding: 8px 12px 10px;
  }

  .turnstile .simple-field {
    margin-bottom: 4px;
  }

  .turnstile .simple-field label {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .turnstile .simple-select-btn {
    padding: 5px 9px;
    font-size: 11px;
  }

  .turnstile .amount-row-3 {
    gap: 4px;
    margin-bottom: 4px;
  }

  .turnstile .amt-pill {
    padding: 5px 0;
    font-size: 11px;
  }

  .turnstile .custom-amount {
    padding: 0 10px;
  }

  .turnstile .custom-amount input {
    padding: 5px 6px;
    font-size: 10px;
  }

  .turnstile .ts-card-footer {
    padding: 6px 12px 10px;
  }

  .turnstile .huge-btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .turnstile .ts-pager {
    margin-top: auto;
  }
}

@media (min-width: 901px) and (max-height: 580px) {
  .turnstile {
    --ts-card-h: clamp(220px, calc(var(--snap-height, 520px) - 253px), 340px);
    --ts-panel-pad-top: 0px;
    --ts-pager-footer-gap: var(--space-4);
  }

  .turnstile .ts-head {
    margin-bottom: 6px;
  }

  .turnstile .ts-title {
    margin-bottom: 6px;
    font-size: clamp(24px, 2.2vw, 30px);
  }

  .turnstile .ts-blurb {
    max-width: 620px;
    font-size: 11px;
    line-height: 1.35;
  }

  .turnstile .ts-card-photo {
    height: 82px;
    padding: 8px 12px;
  }

  .turnstile .ts-card-body {
    padding: 6px 10px 8px;
  }

  .ts-orphan .orphan-copy {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .ts-orphan .orphan-hadith {
    font-size: 9px;
    margin: 0 0 4px;
    padding-top: 4px;
  }

  .ts-orphan .orphan-stats {
    gap: 3px;
    margin-bottom: 4px;
  }

  .ts-orphan .stat-box {
    padding: 3px 5px;
  }

  .ts-orphan .stat-num {
    font-size: 14px;
  }

  .ts-orphan .stat-unit {
    font-size: 9px;
  }
}

@media (min-width: 1600px) {
  .turnstile {
    --ts-card-h: clamp(418px, 60.5vh, 720px);
  }
}

/* Swipe hint — desktop: hidden */
.ts-swipe-hint {
  display: none;
}

@keyframes ts-nudge-left {
  0%, 100% { transform: translateX(0);    opacity: 0.55; }
  50%       { transform: translateX(-5px); opacity: 1; }
}

@keyframes ts-nudge-right {
  0%, 100% { transform: translateX(0);   opacity: 0.55; }
  50%       { transform: translateX(5px); opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  body.home-v3 {
    scroll-snap-type: none;
    scroll-padding-top: 0;
  }

  html:has(body.home-v3) {
    scroll-snap-type: none;
    scroll-padding-top: 0;
  }

  .snap-panel {
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .snap-dots {
    display: none;
  }

  .turnstile {
    --ts-card-h: clamp(500px, 70vh, 620px);
    --ts-card-w: clamp(320px, calc(100% - 24px), 480px);
    --ts-floating-footer-h: var(--footer-height);
    padding: var(--header-height) 0 calc(var(--footer-height) + var(--space-7));
    justify-content: center;
  }

  body.home-v3 section.turnstile.snap-panel {
    padding-bottom: calc(var(--footer-height) + var(--space-7));
  }

  .ts-stage {
    flex: none;
    min-height: 0;
    max-height: none;
    margin-top: 0;
    perspective: none;
    height: calc(var(--ts-card-h) + 40px);
    overflow: hidden;
    width: 100%;
  }

  .ts-track {
    height: var(--ts-card-h);
  }

  .ts-card {
    position: absolute;
    left: 50%;
    top: 0;
    width: var(--ts-card-w);
    max-width: var(--ts-card-w);
    margin: 0;
    height: var(--ts-card-h);
    padding: 0;
    box-sizing: border-box;
    transition:
      transform 0.42s cubic-bezier(0.65, 0.04, 0.25, 0.98),
      opacity 0.3s ease;
  }

  .ts-card-photo {
    border-radius: 0;
  }

  .ts-card-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 6px 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ts-card-body::-webkit-scrollbar {
    display: none;
  }

  .turnstile .ts-pager {
    margin-top: var(--space-2);
  }

  .turnstile .ts-head {
    margin-bottom: var(--space-3);
  }

  .ts-orphan .ts-card-body {
    gap: 0;
  }

  .ts-orphan .orphan-copy {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .ts-orphan .orphan-hadith {
    font-size: 13px;
    margin: 0 0 10px;
    padding-top: 8px;
  }

  .ts-orphan .orphan-stats {
    margin-bottom: 12px;
    gap: 10px;
  }

  .ts-orphan .stat-box {
    padding: 10px 12px;
  }

  .ts-orphan .stat-num {
    font-size: 22px;
  }

  .ts-orphan .stat-unit {
    font-size: 12px;
  }

  .ts-orphan .huge-btn {
    margin-top: auto;
    min-height: 48px;
  }

  .ts-well .huge-btn,
  .ts-emergency .huge-btn,
  .ts-zakat .huge-btn {
    margin-top: auto;
    min-height: 48px;
  }

  /* Mobile: tighten turnstile card spacing so all content fits without scrolling */
  .turnstile .ts-card-photo {
    height: clamp(100px, calc(var(--ts-card-h) * 0.3), 130px);
  }

  .turnstile .ts-card-title {
    font-size: clamp(20px, 5vw, 24px);
  }

  .turnstile .simple-field {
    margin-bottom: 16px;
  }

  .turnstile .simple-field label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .turnstile .simple-select-btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .turnstile .huge-btn {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 15px;
  }

  .turnstile .ts-link {
    font-size: 11px;
    margin-top: 4px;
  }

  .turnstile .well-mode-btn {
    padding: 9px 0;
    font-size: 13px;
  }

  .turnstile .well-help {
    font-size: 12px;
    margin-top: 6px;
  }

  .turnstile .well-total {
    padding: 10px 14px;
    margin-bottom: 10px;
  }

  .turnstile .well-total-val {
    font-size: 22px;
  }

  .turnstile .well-amt-pill {
    padding: 9px 0;
    font-size: 13px;
  }

  .turnstile .well-custom-amt input {
    padding: 9px 6px;
    font-size: 13px;
  }

  .turnstile .zk-input-large input {
    font-size: 18px;
    padding: 12px 8px;
  }

  .turnstile .ts-zakat .simple-field {
    margin-bottom: 16px;
  }

  .ts-card.center {
    transform: translateX(-50%);
    opacity: 1;
    z-index: 3;
    filter: none;
    cursor: default;
  }

  .ts-card.left {
    transform: translateX(-160%);
    opacity: 0.4;
    z-index: 2;
    filter: none;
    display: block;
    pointer-events: none;
  }

  .ts-card.right {
    transform: translateX(60%);
    opacity: 0.4;
    z-index: 2;
    filter: none;
    display: block;
    pointer-events: none;
  }

  .ts-card.hidden {
    transform: translateX(-50%);
    opacity: 0;
    z-index: 1;
    display: block;
    pointer-events: none;
  }

  .ts-arrow {
    display: none;
  }

  .ts-side-hit {
    display: none;
  }

  .turnstile.bg-wells .ts-bg,
  .turnstile.bg-emergency .ts-bg {
    background:
      linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.70) 45%, transparent 100%),
      radial-gradient(ellipse at 20% 20%, rgba(0, 85, 128, 0.35) 0%, transparent 55%),
      radial-gradient(ellipse at 80% 80%, rgba(0, 85, 128, 0.20) 0%, transparent 55%);
  }

  .turnstile.bg-orphan .ts-bg {
    background:
      linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.70) 45%, transparent 100%),
      radial-gradient(ellipse at 20% 20%, rgba(234, 138, 44, 0.35) 0%, transparent 55%),
      radial-gradient(ellipse at 80% 80%, rgba(234, 138, 44, 0.20) 0%, transparent 55%);
  }

  .turnstile.bg-zakat .ts-bg {
    background:
      linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.70) 45%, transparent 100%),
      radial-gradient(ellipse at 20% 20%, rgba(87, 8, 65, 0.35) 0%, transparent 55%),
      radial-gradient(ellipse at 80% 80%, rgba(87, 8, 65, 0.20) 0%, transparent 55%);
  }

  #ts-global-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #595959;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 10px 0 4px;
    font-family: 'Inter', system-ui, sans-serif;
    opacity: 1;
    transition: opacity 0.4s ease;
  }

  #ts-global-swipe-hint.ts-hint-hidden {
    opacity: 0;
    pointer-events: none;
  }

  .ts-swipe-hint .ts-swipe-l {
    animation: ts-nudge-left 1.8s ease-in-out infinite;
  }

  .ts-swipe-hint .ts-swipe-r {
    animation: ts-nudge-right 1.8s ease-in-out infinite;
  }

  @media (prefers-reduced-motion: reduce) {
    .ts-swipe-hint .ts-swipe-l,
    .ts-swipe-hint .ts-swipe-r {
      animation: none;
      opacity: 0.8;
    }
  }

  .ts-title {
    font-size: 30px;
  }

  .hi-prev,
  .hi-next {
    display: none !important;
  }

  .anniversary-card {
    aspect-ratio: unset !important;
    height: 300px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    width: calc(100% - 32px) !important;
    margin: 16px auto 0 !important;
  }

  .anniversary-text {
    text-align: center !important;
    padding: 16px 16px 8px !important;
    width: calc(100% - 32px) !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    position: relative !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    left: auto !important;
    bottom: auto !important;
    max-width: 100% !important;
    color: var(--color-near-black) !important;
    z-index: auto !important;
  }

  .anniversary-text h2 {
    font-size: 20px !important;
    margin-bottom: 5px !important;
    color: var(--color-near-black) !important;
  }

  .anniversary-text p {
    font-size: 12px !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
    color: var(--color-near-black) !important;
    opacity: 1 !important;
  }

  .anniversary .support-btn-wrap {
    position: static !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: calc(100% - 128px) !important;
    margin: 12px auto 16px !important;
    padding: 0 !important;
    right: auto !important;
    bottom: auto !important;
  }

  .anniversary .support-btn-wrap .ha-donate-btn {
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
  }
}

@media (max-width: 575px),
  (min-width: 576px) and (max-width: 767px),
  (min-width: 768px) and (max-width: 900px) {
  body.home-v3 .anniversary.snap-panel {
    display: grid;
    grid-template-areas:
      "anniversary-copy"
      "anniversary-media"
      "anniversary-cta";
    grid-template-rows: auto auto auto;
    align-items: start;
    justify-content: stretch;
    padding-top: var(--header-height) !important;
  }

  .anniversary-card {
    grid-area: anniversary-media;
    height: clamp(200px, 36vh, 300px) !important;
    margin-top: 0 !important;
  }

  .anniversary-text {
    grid-area: anniversary-copy;
    justify-self: center;
    position: relative !important;
    z-index: auto !important;
    width: calc(100% - var(--space-8)) !important;
    max-width: calc(100% - var(--space-8)) !important;
    margin: var(--space-4) auto var(--space-3) !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--color-near-black) !important;
    text-align: center !important;
  }

  .anniversary-text h2 {
    margin-bottom: var(--space-2) !important;
    color: var(--color-near-black) !important;
    font-family: "Fields Display", "DM Serif Display", Georgia, serif;
    font-size: 32px !important;
    font-weight: 500;
    line-height: 1.1;
  }

  .anniversary-text p {
    color: var(--color-near-black) !important;
    font-family: "Oakes Grotesk", "Inter", system-ui, sans-serif;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  .anniversary .support-btn-wrap {
    grid-area: anniversary-cta;
  }
}

/* Turnstile: very small phones */
@media (max-width: 375px) {
  .turnstile {
    --ts-card-w: clamp(300px, calc(100% - 16px), 360px);
  }

  .ts-card-body {
    padding: 14px 6px 10px;
  }
}

/* ===== HEADER ===== */
.top-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.logo-text {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: var(--green);
  font-size: 16px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--green);
}

.main-nav .has-dropdown::after {
  content: " ▾";
  font-size: 10px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-icon {
  color: #666;
  font-size: 14px;
  cursor: pointer;
}

.donate-btn {
  background: var(--pink);
  color: white;
  padding: 10px 22px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.donate-btn:hover {
  background: var(--pink-dark);
}

/* ===== HERO CAROUSEL ===== */
.hero {
  position: relative;
  height: var(--snap-panel-height, var(--snap-height, 100vh));
  min-height: var(--snap-panel-height, var(--snap-height, 100vh));
  padding: 0;
  margin: 0;
  overflow: hidden;
  color: white;
  justify-content: flex-end;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
  display: flex;
  align-items: center;
  padding: clamp(56px, 8vh, 96px) 0 clamp(64px, 8vh, 110px);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s 0s;
}

.hero-grid {
  width: calc(100% - var(--container-margin) - var(--container-margin));
  max-width: var(--container-outer-max, 1400px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.1fr 420px;
  gap: 60px;
  align-items: center;
}

/* Default (no JS / hydrated to first slide): grid is fully visible so the LCP
   element paints immediately. The entry animation only runs when JS hydrates
   and switches to a non-first slide. */
.hero-slide.active .hero-grid {
  transform: translateY(0);
  opacity: 1;
}

body.has-hero-js .hero-grid {
  transform: translateY(20px);
  opacity: 0;
  transition:
    transform 1s 0.15s ease,
    opacity 1s 0.15s ease;
}

body.has-hero-js .hero-slide.active .hero-grid {
  transform: translateY(0);
  opacity: 1;
}

/* Skip the intro animation on the FIRST slide so its hero-grid (and the
   H2 inside it) becomes the LCP candidate immediately on first paint.
   Subsequent slides still get the slide-up entry, and the data-hero-lcp
   attribute is the authoritative marker set by front-page-v3.php. */
body.has-hero-js .hero-slide.active[data-hero-lcp="1"] .hero-grid,
body.has-hero-js .hero-slide[data-hero-lcp="1"] .hero-grid {
  transform: none;
  opacity: 1;
  transition: none;
}

.hero-campaign {
  font-size: clamp(60px, 8vw, 108px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 0;
  font-family: "Fields Display", "DM Serif Display", Georgia, serif;
}

.hero-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  opacity: 0.88;
  line-height: 1.55;
  max-width: 540px;
}

.hero-byline {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 18px;
  max-width: 480px;
  font-weight: 400;
}

.hero-read-more {
  display: inline-block;
  margin-top: var(--space-4);
  padding: 10px 18px;
  background: var(--color-haa-green, var(--green));
  border: 2px solid var(--color-haa-green, var(--green));
  color: #FFFFFF;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
}

.hero-read-more:hover {
  background: var(--color-green-dark, var(--green-dark));
  border-color: var(--color-green-dark, var(--green-dark));
  color: #FFFFFF;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(1, 170, 1, 0.5);
}

/* Floating campaign card */
.campaign-card {
  background: white;
  color: #222;
  border-radius: 14px;
  padding: 34px 30px 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.campaign-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.2;
  font-family: "Inter", sans-serif;
}

.campaign-donate-header {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.2;
  font-family: "Inter", sans-serif;
}

.cc-byline {
  font-size: 14px;
  color: #666;
  line-height: 1.55;
  margin-bottom: 24px;
}

.cc-row {
  margin-bottom: 18px;
}

.cc-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
  margin-bottom: 8px;
}

.cc-locked {
  background: #f0f8ed;
  border: 1px solid #c5e0b5;
  color: var(--green-dark);
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-locked i {
  font-size: 11px;
}

.cc-select-wrap {
  position: relative;
  width: 100%;
}

.cc-select-wrap select.cc-select {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.cc-select-btn {
  width: 100%;
  padding: 14px 14px;
  min-height: 48px;
  background: #f5f5f5;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Replaced: border-color transition (non-composited per PSI "Avoid
     non-composited animations"). Use box-shadow + opacity on focus
     instead so the compositor handles the paint. */
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
}

/* a11y tap-target: pin min-height 48px (WCAG 2.5.5). Composited
   focus ring uses box-shadow (composited) instead of border-color. */
.cc-select-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--green, #39B54A);
  background: white;
}

.cc-select-btn svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.cc-select-wrap.open .cc-select-btn {
  /* Replaced border-color (non-composited) with box-shadow ring so
     the "open" indicator is compositor-only. */
  box-shadow: 0 0 0 2px var(--green, #39B54A);
  background: white;
}

.cc-select-wrap.open .cc-select-btn svg {
  transform: rotate(180deg);
}

.cc-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 6px;
  z-index: 30;
  max-height: 220px;
  overflow-y: auto;
  display: none;
}

.cc-select-wrap.open .cc-select-menu {
  display: block;
}

.cc-select-option {
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.1s;
  color: #222;
}

.cc-select-option:hover {
  background: #e8f5e9;
}

.cc-select-option.selected {
  background: #c8e6c9;
  color: #1f7a30;
  font-weight: 600;
}

.cc-project-search {
  padding: 0 0 4px;
}
.cc-project-search-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  color: #222;
  background: #f5f5f5;
  outline: none;
  box-sizing: border-box;
}
.cc-project-search-input:focus {
  border-color: var(--green);
  background: #fff;
}

/* Amount mode — three pills + custom field */
.cc-amount-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.6fr;
  gap: 8px;
}

.cc-amt {
  padding: 11px 0;
  background: #f5f5f5;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  color: #222;
}

.cc-amt:hover {
  background: #ececec;
}

.cc-amt.active {
  background: white;
  border-color: var(--pink);
  color: var(--pink);
}

.cc-amt-custom {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 0 10px;
  border: 1.5px solid transparent;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.cc-amt-custom:focus-within {
  border-color: var(--pink);
  background: white;
}

.cc-amt-prefix {
  font-size: 13px;
  color: #888;
  font-weight: 600;
}

.cc-amt-custom input {
  flex: 1;
  width: 100%;
  padding: 9px 6px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  font-family: inherit;
  -moz-appearance: number-input;
}

.cc-amt-custom input::-webkit-outer-spin-button,
.cc-amt-custom input::-webkit-inner-spin-button {
  -webkit-appearance: inner-spin-button;
  opacity: 1;
  cursor: pointer;
}

/* Quantity mode */
.cc-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 6px 14px 6px 14px;
}

.cc-qty-label {
  font-size: 13px;
  color: #444;
  font-weight: 500;
}

.cc-qty-label span {
  font-weight: 700;
  color: #222;
}

.cc-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: white;
  border-radius: 8px;
}

.cc-stepper button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: white;
  color: #222;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.15s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cc-stepper button:hover {
  border-color: var(--green);
  color: var(--green);
}

.cc-stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cc-qty {
  min-width: 38px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: #222;
  font-family: "Inter", sans-serif;
}

.cc-total {
  background: linear-gradient(135deg, #f0f8ed, #e6f3df);
  border: 1px solid #c5e0b5;
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0 18px;
}

.cc-total-label {
  font-size: 11px;
  color: #5a8a3e;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.cc-total-val {
  font-size: 30px;
  font-weight: 700;
  color: var(--green-dark);
  font-family: "Inter", sans-serif;
  line-height: 1;
  letter-spacing: -0.02em;
}

.cc-donate {
  width: 100%;
  padding: 15px;
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  letter-spacing: 0.3px;
  transition:
    background 0.2s,
    transform 0.15s;
}

.cc-donate:hover {
  background: var(--pink-dark);
  transform: translateY(-1px);
}

.cc-error {
  display: none;
  margin-top: 12px;
  color: var(--pink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

/* Slide indicator */
.hero-indicator {
  position: absolute;
  bottom: 36px;
  left: 6vw;
  right: 6vw;
  z-index: 5;
}

.hi-rail {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 14px;
}

.hi-prev,
.hi-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.hi-prev:hover,
.hi-next:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: white;
}

.hi-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: white;
}

.hi-counter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
}

.hi-current {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hi-divider {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.hi-total {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.6;
}

.hi-tag {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
}

.hi-progress {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 1px;
  overflow: hidden;
}

.hi-progress-fill {
  height: 100%;
  background: white;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.15s linear;
  will-change: transform;
}

.mobile-segments {
  display: none;
}

.ms-seg {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.ms-fill {
  height: 100%;
  background: white;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.15s linear;
  will-change: transform;
}

/* Responsive hero */
@media (max-width: 1024px) {
  .hero-slide {
    padding: clamp(46px, 6vh, 70px) 0 clamp(56px, 7vh, 86px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: clamp(24px, 4vw, 40px);
    align-items: center;
  }

  .hero-campaign {
    font-size: clamp(48px, 6vw, 64px);
  }

  .hero-byline {
    max-width: 420px;
    font-size: 15px;
    line-height: 1.5;
  }

  .campaign-card {
    width: 100%;
    max-width: 360px;
    justify-self: end;
    padding: 24px 22px 22px;
  }

  .campaign-card h3 {
    font-size: 17px;
  }

  .cc-byline {
    margin-bottom: 16px;
  }

  .cc-row {
    margin-bottom: 14px;
  }

  .cc-total {
    margin: 16px 0 14px;
    padding: 13px 15px;
  }

  .cc-total-val {
    font-size: 26px;
  }

  .cc-donate {
    padding: 13px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    justify-items: stretch;
    align-content: start;
  }

  .hero-slide {
    align-items: flex-start;
    padding: 25px 5vw 130px;
  }

  .hero-story {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 45px;
  }

  .hero-campaign {
    font-size: 44px;
    line-height: 0.95;
    margin-top: 0;
  }

  .hero-byline {
    max-width: 560px;
    margin-left: 0;
    margin-right: 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
  }

  .hero-indicator {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .hi-meta,
  .hi-rail,
  .hi-progress {
    display: none;
  }

  .mobile-segments {
    display: flex;
    gap: 4px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
  }

  .campaign-card {
    width: min(100%, 420px);
    max-width: 420px;
    justify-self: center;
    text-align: left;
    margin-bottom: 40px;
    padding: 22px 20px 20px;
  }
}

/* ===== HEADER (override transparent to dark hero) ===== */
.top-header {
  background: rgba(255, 255, 255, 0.96);
}

/* ===== HEADER DROPDOWN FIX for v3 snap scroll ===== */
/* Ensure the Elementor header has proper z-index and dropdowns are visible */
body.home-v3 .elementor-location-header {
  position: relative;
  z-index: 1000;
}

body.home-v3 .ha-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Elementor nav-menu dropdown fix — ensure sub-menus show on hover */
body.home-v3 .elementor-widget-nav-menu .menu-item-has-children {
  position: relative;
}

body.home-v3 .elementor-widget-nav-menu .sub-menu,
body.home-v3 .elementor-nav-menu--main .menu-item-has-children > .sub-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  list-style: none;
  z-index: 1001;
}

body.home-v3
  .elementor-widget-nav-menu
  .menu-item-has-children:hover
  > .sub-menu,
body.home-v3
  .elementor-nav-menu--main
  .menu-item-has-children:hover
  > .sub-menu {
  display: block !important;
}

body.home-v3 .elementor-widget-nav-menu .sub-menu li,
body.home-v3 .elementor-nav-menu--main .menu-item-has-children > .sub-menu li {
  margin: 0;
}

body.home-v3 .elementor-widget-nav-menu .sub-menu li a,
body.home-v3
  .elementor-nav-menu--main
  .menu-item-has-children
  > .sub-menu
  li
  a {
  display: block;
  padding: 10px 16px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}

body.home-v3 .elementor-widget-nav-menu .sub-menu li a:hover,
body.home-v3
  .elementor-nav-menu--main
  .menu-item-has-children
  > .sub-menu
  li
  a:hover {
  background: var(--green-light);
  color: var(--green);
}

/* Theme nav-menu dropdown fix */
body.home-v3 .ha-nav-menu .menu-item-has-children > .sub-menu,
body.home-v3 .ha-nav-menu .menu-item-has-children > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  list-style: none;
  z-index: 1001;
}

body.home-v3 .ha-nav-menu .menu-item-has-children:hover > .sub-menu,
body.home-v3 .ha-nav-menu .menu-item-has-children:hover > ul {
  display: block;
}

body.home-v3 .ha-nav-menu .menu-item-has-children {
  position: relative;
}

body.home-v3 .ha-nav-menu .menu-item-has-children > .sub-menu li a,
body.home-v3 .ha-nav-menu .menu-item-has-children > ul li a {
  display: block;
  padding: 10px 16px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}

body.home-v3 .ha-nav-menu .menu-item-has-children > .sub-menu li a:hover,
body.home-v3 .ha-nav-menu .menu-item-has-children > ul li a:hover {
  background: var(--green-light);
  color: var(--green);
}

/* Disable hover dropdown on mobile — use mobile toggle instead */
@media (max-width: 900px) {
  body.home-v3 .elementor-widget-nav-menu .sub-menu,
  body.home-v3 .elementor-nav-menu--main .menu-item-has-children > .sub-menu {
    display: none !important;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  body.home-v3
    .elementor-widget-nav-menu
    .menu-item-has-children:hover
    > .sub-menu,
  body.home-v3
    .elementor-nav-menu--main
    .menu-item-has-children:hover
    > .sub-menu {
    display: none !important;
  }

  body.home-v3 .ha-nav-menu .menu-item-has-children > .sub-menu,
  body.home-v3 .ha-nav-menu .menu-item-has-children > ul {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  body.home-v3 .ha-nav-menu .menu-item-has-children:hover > .sub-menu,
  body.home-v3 .ha-nav-menu .menu-item-has-children:hover > ul {
    display: none;
  }
}

/* ===== INFO STRIP ===== */
.info-strip {
  background: var(--green);
  color: white;
  padding: 12px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.strip-left {
  display: flex;
  gap: 25px;
}

.strip-left a {
  opacity: 0.9;
}

.strip-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: background 0.2s;
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ===== ANNIVERSARY BANNER ===== */
/* Beats body.home-v3 section.snap-panel (0,0,2,2) on all viewports */
body.home-v3 .anniversary.snap-panel {
  padding: 0;
}

.anniversary-card {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #000;
  aspect-ratio: 8 / 5;
  min-height: unset;
  display: flex;
  align-items: flex-end;
  color: white;
}

.anniversary-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.anniversary-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.anniversary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 45%);
}

.anniversary-text {
  position: relative;
  z-index: 2;
  padding: 30px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.anniversary-text h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
  overflow-wrap: break-word;
}

.anniversary-text p {
  font-size: 14px;
  opacity: 0.95;
  max-width: 700px;
  overflow-wrap: break-word;
}

.anniversary .support-btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}

.support-btn-wrap .support-btn,
.support-btn-wrap .ha-donate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  line-height: 1;
  box-sizing: border-box;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: white;
  padding: 12px 36px;
  border-radius: 25px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.support-btn:hover {
  color: white;
  background: var(--green-dark);
}

.support-btn-secondary {
  background: var(--pink);
}

.support-btn-secondary:hover {
  background: var(--pink-dark);
}

@media (min-width: 901px) {
  .section.snap-panel,
  .walking.snap-panel,
  .why-section.snap-panel,
  .partners.snap-panel {
    padding: 0 0 var(--footer-height);
  }

  #snap-globe.snap-panel {
    padding: 0 0 var(--footer-height);
  }

  #snap-globe .globe-v2 {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #snap-globe .globe-v2 .charity-globe-wrapper {
    width: calc(
      100% - var(--container-margin, 32px) - var(--container-margin, 32px)
    );
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    box-sizing: border-box;
    overflow-x: clip;
    max-height: calc(
      var(--snap-height, 100vh) - var(--header-height) - var(--footer-height)
    );
    height: 100%;
  }

  #snap-globe .globe-v2 .charity-card-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 500px !important;
    background: transparent;
    border-radius: 24px;
    z-index: 2;
    pointer-events: none;
    text-align: center;
    padding-top: 40px;
  }

  #snap-globe .globe-v2 #charityGlobe {
    width: 100% !important;
    height: min(720px, calc(var(--snap-height, 100vh) - 220px)) !important;
    max-height: calc(var(--snap-height, 100vh) - 220px) !important;
    overflow: visible;
    margin-top: 100px;
    transform: scale(0.85) !important;
    transform-origin: center center !important;
  }

  #snap-globe .globe-v2 #charityGlobe canvas {
    max-height: 100% !important;
    filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.2));
  }

  #snap-globe .globe-v2 .charity-stats {
    bottom: 125px !important;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
  }

  .section-frame {
    max-height: calc(
      var(--snap-height, 720px) - var(--header-height) - var(--footer-height)
    );
  }

  /* Section is the positioning context for text + button overlays */
  .anniversary.snap-panel {
    position: relative;
  }

  /* Full-bleed card — fills the section */
  .anniversary-card {
    max-width: none;
  }

  /* Text overlay — bottom-left frosted box */
  .anniversary-text {
    position: absolute;
    bottom: calc(var(--footer-height, 56px) + var(--space-6));
    left: var(--space-7);
    max-width: min(520px, 50%);
    width: auto;
    padding: var(--space-5) var(--space-6);
    background: rgba(0, 0, 0, 0.45);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    box-sizing: border-box;
  }

  .anniversary-text p {
    max-width: none;
  }

  /* Button — bottom-right over video, relative to snap-panel section */
  .anniversary .support-btn-wrap {
    position: absolute;
    bottom: calc(var(--footer-height, 56px) + var(--space-6));
    right: var(--space-7);
    z-index: 2;
    width: auto;
    margin: 0;
  }
}

/* ===== EMERGENCY RELIEF ===== */
.section {
  padding: 50px 0;
}

.section-title {
  text-align: center;
  color: var(--green);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto 35px;
  font-size: 15px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 22px;
}

.project-card h4 {
  text-align: center;
  font-size: 17px;
  color: #222;
  margin-bottom: 14px;
}

.amount-row-small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.amount-row-small button {
  padding: 8px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.amount-row-small button:hover {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.project-card input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 12px;
  font-family: inherit;
}

.project-donate-btn {
  width: 100%;
  padding: 11px;
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.project-donate-btn:hover {
  background: var(--pink-dark);
}

.see-all-wrap {
  text-align: center;
  margin-top: 30px;
}

.see-all-btn {
  background: none;
  color: var(--green);
  border: 1.5px solid var(--green);
  padding: 10px 30px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.see-all-btn:hover {
  background: var(--green);
  color: white;
}

/* ===== GLOBAL REACH ===== */
#snap-globe.snap-panel {
  background: #f5f5f5;
}

/* ===== THE WORK ===== */
.work-section {
  padding: 50px 20px;
}

.work-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--purple);
  border-radius: 8px;
  padding: 35px 40px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.work-card-left h3 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 600;
}

.work-card-left p {
  font-size: 14px;
  opacity: 0.92;
  line-height: 1.5;
}

.see-emergencies-btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 9px 22px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 14px;
  transition: background 0.2s;
}

.see-emergencies-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.work-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.work-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== FUNDRAISERS ===== */
.fundraiser-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 25px;
  padding: 0;
}

.fundraiser-header h2 {
  color: #111;
  font-size: 32px;
  font-weight: 700;
}

.view-all-btn {
  background: var(--pink);
  color: white;
  padding: 10px 24px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.view-all-btn:hover {
  background: var(--pink-dark);
}

.fundraiser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.fundraiser-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.fundraiser-title {
  font-size: 18px;
  color: #222;
  font-weight: 700;
  margin-bottom: 20px;
}

.progress-info {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.pi-block {
  display: flex;
  flex-direction: column;
}

.pi-raised {
  color: var(--green);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.pi-goal {
  color: #444;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.pi-label {
  font-size: 11px;
  color: #999;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}

.pi-divider {
  width: 1px;
  height: 36px;
  background: #eaeaea;
  margin: 0 24px;
}

.progress-bar {
  width: calc(100% - 45px);
  height: 8px;
  background: #eaeaea;
  border-radius: 4px;
  position: relative;
  margin-bottom: 24px;
  display: inline-block;
  vertical-align: middle;
}

.progress-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  position: relative;
}

.progress-bar::after {
  content: attr(data-pct);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateX(calc(100% + 10px)) translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.fundraiser-donate-btn {
  width: 100%;
  background: var(--pink);
  color: white;
  padding: 12px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}

.fundraiser-donate-btn:hover {
  background: var(--pink-dark);
}

.start-fundraiser-wrap {
  text-align: center;
  margin-top: 30px;
}

.start-fundraiser-btn {
  background: var(--green);
  color: white;
  padding: 11px 32px;
  border-radius: 25px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.start-fundraiser-btn:hover {
  background: var(--green-dark);
}

/* ===== FEATURED NEWS ===== */
/* News card styles are shared via components.css (.ha-news-card) */
/* This grid layout is homepage-specific */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ===== WALKING THE PATH ===== */
.walking {
  background: var(--bg-grey);
  padding: 55px 0;
}

.walking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  max-width: 100%;
  margin: 0 auto;
}

.walking-card {
  position: relative;
  overflow: hidden;
  background: #1d1d1b;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  border-radius: 8px;
  padding: 30px;
  color: white;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.2s;
  text-decoration: none;
}

.walking-card__picture,
.walking-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.walking-card__img {
  object-fit: cover;
}

.walking-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.walking-card__body {
  position: relative;
  z-index: 2;
}

.walking-card__body h3,
.walking-card h4 {
  font-size: 18px;
  margin: 0 0 6px;
  color: white;
  font-weight: 600;
}

.walking-card__body p,
.walking-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.walking-card:hover {
  transform: translateY(-3px);
}

.walking-card.large {
  grid-row: span 2;
  min-height: auto;
}

.walking-card.purple {
  background: #9c8bb8;
  color: white;
}

.walking-card.purple h3,
.walking-card.purple h4,
.walking-card.purple p {
  color: white;
}

.walking-cta {
  margin-top: var(--space-5);
  text-align: center;
}

/* ===== WHY HUMAN APPEAL ===== */
.why-section {
  padding: 60px 0;
  max-width: none;
  margin: 0;
}

.why-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  width: calc(100% - var(--container-margin) - var(--container-margin));
  max-width: var(--container-outer-max, 1400px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
  gap: clamp(48px, 6vw, 76px);
  align-items: center;
}

.why-content {
  max-width: 660px;
}

.why-image {
  min-width: 0;
}

.why-image img {
  width: 100%;
  aspect-ratio: 0.86;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.why-section h2 {
  color: var(--green);
  font-size: 30px;
  margin-bottom: 18px;
  font-weight: 700;
}

.why-section p {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.why-section blockquote {
  border-left: 3px solid var(--pink);
  padding: 14px 22px;
  background: #fafafa;
  font-style: italic;
  color: #444;
  font-size: 14px;
  line-height: 1.7;
  margin: 18px 0;
}

.why-section blockquote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 13px;
  color: #777;
  font-weight: 500;
}

@media (min-width: 901px) {
  .news-grid {
    gap: 18px;
  }

  .walking {
    padding: 0 0 var(--footer-height);
  }

  .walking .section-frame {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .walking .section-title {
    font-size: clamp(28px, 3.2vw, 34px);
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .walking .section-sub {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.45;
  }

  .walking-grid {
    grid-template-columns: 1.05fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
    height: clamp(280px, calc(var(--snap-height, 720px) - 230px), 430px);
  }

  .walking-card {
    min-height: 0;
    height: 100%;
    padding: 20px;
  }

  .walking-card h4,
  .walking-card__body h3 {
    font-size: 17px;
    margin-bottom: 4px;
  }

  .walking-card p,
  .walking-card__body p {
    font-size: 12px;
    line-height: 1.45;
  }

  .walking-card.large {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .walking-card:nth-child(4) {
    grid-column: 2 / 4;
  }

  .why-inner {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
    min-height: calc(
      var(--snap-height, 720px) - var(--header-height) - var(--footer-height)
    );
  }

  .why-image img {
    max-height: calc(var(--snap-height, 720px) - 150px);
    object-fit: cover;
  }

  .why-section h2 {
    font-size: clamp(26px, 2.3vw, 30px);
    margin-bottom: 14px;
  }

  .why-section p,
  .why-section blockquote {
    line-height: 1.55;
    margin-bottom: 14px;
  }
}

/* ===== PARTNERS ===== */
.partners {
  position: relative;
  padding: 50px 0;
  background: linear-gradient(180deg, #f7fbf4 0%, #fff 46%, #f0f8ed 100%);
  text-align: center;
  min-height: 100vh;
  overflow: hidden;
}

.partners .section-frame {
  position: relative;
  z-index: 1;
}

.partners h2 {
  color: var(--green);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
  margin-bottom: clamp(28px, 4vh, 40px);
  font-weight: 700;
}

.partner-carousel {
  --partner-gap: clamp(14px, 1.6vw, 22px);
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(18px, 3vh, 28px) clamp(48px, 5vw, 64px);
  border-top: 1px solid rgba(40, 167, 69, 0.16);
  border-bottom: 1px solid rgba(40, 167, 69, 0.16);
  background: linear-gradient(
    90deg,
    rgba(40, 167, 69, 0),
    rgba(40, 167, 69, 0.08),
    rgba(40, 167, 69, 0)
  );
}

.partner-viewport {
  overflow: clip;
  overflow-clip-margin: 20px;
}

.partner-track {
  display: grid;
  grid-template-rows: repeat(3, clamp(110px, 14vh, 150px));
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--partner-gap) * 3)) / 4);
  gap: var(--partner-gap);
  transition: transform 0.4s ease;
  will-change: transform;
}

.partner-track .partner-logo {
  min-width: 0;
  height: 100%;
  padding: clamp(12px, 1.6vw, 18px);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(20, 120, 45, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16, 81, 35, 0.07);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.partner-track .partner-logo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: grayscale(0.3);
  opacity: 0.9;
  transition: all 0.3s;
}

.partner-track .partner-logo:hover {
  border-color: rgba(40, 167, 69, 0.28);
  box-shadow: 0 16px 34px rgba(16, 81, 35, 0.12);
  transform: translateY(-2px);
}

.partner-track .partner-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.partner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid #ddd;
  padding: 0;
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
  z-index: 2;
}

.partner-arrow:hover {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.partner-arrow[hidden] {
  display: none;
}

.partner-arrow.left {
  left: 0;
}

.partner-arrow.right {
  right: 0;
}

@media (min-width: 901px) {
  .partners {
    min-height: var(--snap-panel-height, var(--snap-height, 100vh));
    padding: 0 0 var(--footer-height);
    display: flex;
    align-items: center;
  }

  .partners .section-frame {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(
      var(--snap-height, 720px) - var(--header-height) - var(--footer-height)
    );
  }
}

/* ===== FOOTER ===== */
footer {
  background: var(--green);
  color: white;
  padding: 45px 20px 20px;
}

footer.ha-footer.snap-panel {
  width: 100%;
  min-height: var(--snap-height, 100vh);
  height: var(--snap-height, 100vh);
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  padding: var(--snap-pad-y, 32px) var(--container-margin);
  justify-content: flex-start;
  overflow: clip;
}

footer.ha-footer.snap-panel .ha-footer-grid {
  margin-top: auto;
}

footer.ha-footer.snap-panel .ha-copyright {
  margin-top: auto;
}

@media (max-width: 900px) {
  footer.ha-footer.snap-panel {
    min-height: auto;
    height: auto;
    overflow: visible;
    padding: 56px 0 24px;
  }

  footer.ha-footer.snap-panel .ha-footer-grid,
  footer.ha-footer.snap-panel .ha-copyright {
    width: calc(100% - var(--container-margin) - var(--container-margin));
    max-width: var(--container-outer-max, 1400px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  footer.ha-footer.snap-panel .ha-footer-grid {
    margin-top: 0;
  }

  footer.ha-footer.snap-panel .ha-copyright {
    margin-top: 24px;
  }
}

.footer-grid {
  max-width: var(--container-outer-max, 1400px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 35px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .logo-mark {
  width: 50px;
  height: 50px;
  background: white;
  color: var(--green);
}

.footer-brand h3 {
  font-size: 22px;
  font-weight: 600;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 13px;
  opacity: 0.9;
}

.footer-col li:hover {
  opacity: 1;
  cursor: pointer;
}

.footer-contact p {
  font-size: 13px;
  margin-bottom: 6px;
  opacity: 0.95;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-text h2 {
    font-size: 38px;
  }

  .hero {
    height: 760px;
    min-height: 760px;
  }

  @supports (height: 100svh) {
    .hero {
      height: clamp(700px, var(--snap-height, 100svh), 780px);
      min-height: clamp(700px, var(--snap-height, 100svh), 780px);
    }
  }

  .hero-slide {
    padding: clamp(44px, 7vh, 64px) 0 86px;
  }

  .project-grid,
  .fundraiser-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .walking-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 18px;
  }

  .walking-card,
  .walking-card.large {
    grid-column: auto;
    grid-row: auto;
    min-height: 230px;
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-card {
    flex-direction: column;
    text-align: center;
  }

  .info-strip {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .why-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .partners.snap-panel {
    min-height: auto;
    padding: 40px 0;
  }

  .partners h2 {
    margin-bottom: 24px;
  }

  .partner-carousel {
    max-width: 100%;
    padding: 14px 0;
  }

  #snap-partners .partner-arrow {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  #snap-partners .partner-arrow.left {
    left: -28px;
  }

  #snap-partners .partner-arrow.right {
    right: -28px;
  }

  .partner-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    padding-block: 16px;
    margin-block: -16px;
  }

  .partner-viewport::-webkit-scrollbar {
    display: none;
  }

  .partner-track {
    display: flex;
    gap: 14px;
    transform: none !important;
    transition: none;
    padding: 0 calc(50% - min(35vw, 115px));
  }

  .partner-track .partner-logo {
    flex: 0 0 min(80vw, 320px);
    height: 170px;
    padding: 18px;
    overflow: hidden;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .partner-track .partner-logo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    object-fit: contain;
  }

  @media (max-width: 480px) {
    .partner-track .partner-logo {
      flex: 0 0 min(85vw, 320px);
      height: 150px;
      padding: 16px;
      overflow: hidden;
    }
    .partner-track .partner-logo img {
      width: 100%;
      height: 100%;
      max-width: 100%;
      object-fit: contain;
    }
  }

  .fundraiser-header h2 {
    font-size: 22px;
  }

  .view-all-btn {
    font-size: 12px;
    padding: 6px 16px;
  }
}

@media (max-width: 600px) {
  .support-btn-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .support-btn-wrap .support-btn,
  .support-btn-wrap .ha-donate-btn {
    width: 100%;
    box-sizing: border-box;
  }

  .hero {
    height: 880px;
    min-height: 880px;
  }

  @supports (height: 100svh) {
    .hero {
      height: max(880px, var(--snap-height, 100svh));
      min-height: max(880px, var(--snap-height, 100svh));
    }
  }

  .hero-slide {
    padding-bottom: 150px;
  }

  .hero-indicator {
    bottom: 24px;
  }

  .cc-amount-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campaign-card {
    width: 100%;
  }
}

/* ===== FUNDRAISERS: saved v2 carousel layout ===== */
#snap-fundraisers {
  --snap-pad-y: 20px;
  background-color: #f8f8f8 !important;
  padding: 0 0 var(--footer-height) !important;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

#snap-fundraisers .fundraiser-header-new {
  margin-bottom: 14px;
}

#snap-fundraisers .fundraiser-grid-new {
  margin-bottom: 10px;
}

#snap-fundraisers .fundraiser-banner {
  margin-top: 10px;
}

.fundraiser-container-new {
  width: calc(100% - var(--container-margin) - var(--container-margin));
  max-width: var(--container-outer-max, 1400px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
}

.fundraiser-header-new {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.fundraiser-eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fundraiser-header-new h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.fundraiser-view-all {
  background-color: var(--pink);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
  display: inline-block;
}

.fundraiser-view-all:hover {
  opacity: 0.9;
  color: white;
}

.fundraiser-view-all.mobile-only {
  display: none;
  width: 100%;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.fundraiser-slider {
  position: relative;
}

.fundraiser-grid-new {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  gap: 24px;
  margin-bottom: 20px;
  padding: 2px 2px 10px;
}

.fundraiser-empty-state {
  grid-column: 1 / -1;
  min-height: 110px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #344054;
  font-size: 16px;
  text-align: center;
}

.fundraiser-card-new {
  min-width: 0;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.fundraiser-card-img {
  width: calc(100% + 40px);
  margin: -20px -20px 16px;
  height: 180px;
  border-radius: 12px 12px 0 0;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.fundraiser-card-new:focus-visible {
  outline: 3px solid rgba(1, 170, 1, 0.35);
  outline-offset: 3px;
}

.fundraiser-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.4;
}

.fundraiser-stats {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.fundraiser-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fundraiser-stat-item.raised {
  padding-right: 16px;
  border-right: 1px solid #e0e0e0;
}

.fundraiser-stat-item.goal {
  padding-left: 16px;
}

.fundraiser-amount {
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 800;
  margin-bottom: 4px;
}

.fundraiser-amount.raised-amt {
  color: var(--green);
}

.fundraiser-amount.goal-amt {
  color: var(--text);
}

.fundraiser-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.fundraiser-progress-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}

.fundraiser-progress-bar {
  flex: 1;
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.fundraiser-progress-fill {
  height: 100%;
  background-color: var(--green);
  border-radius: 4px;
}

.fundraiser-progress-fill.orange {
  background-color: #ff9800;
  border-radius: 4px;
}

.fundraiser-progress-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.fundraiser-btn {
  width: 100%;
  background-color: var(--pink);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-align: center;
  text-decoration: none;
  margin-top: auto;
}

.fundraiser-btn:hover {
  opacity: 0.9;
  color: white;
}

.fundraiser-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}

.fundraiser-banner-text {
  display: none;
}

.fundraiser-banner-btn {
  background-color: var(--green-light);
  color: var(--green-dark);
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.fundraiser-banner-btn:hover {
  background-color: #ffffff;
  color: var(--green-dark);
}

@media (max-width: 992px) {
  .fundraiser-grid-new {
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #snap-fundraisers {
    padding: var(--header-height) 0 var(--footer-height) !important;
  }

  .fundraiser-header-new {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }

  .fundraiser-header-text h2 {
    font-size: 32px;
  }

  .fundraiser-view-all.desktop-only {
    display: none;
  }

  .fundraiser-view-all.mobile-only {
    display: block;
    margin-top: 0;
  }

  #snap-news .fundraiser-view-all.mobile-only {
    margin-top: 24px;
  }

  #snap-news .fundraiser-header {
    margin-bottom: 20px;
  }

  #snap-fundraisers .fundraiser-grid-new {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    margin-bottom: 24px;
  }

  #snap-fundraisers .fundraiser-card-new {
    min-width: 0;
    width: 100%;
  }

  .fundraiser-banner {
    background: linear-gradient(135deg, #1a5628 0%, #2ba045 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    color: #fff;
  }

  .fundraiser-banner-text {
    display: block;
  }

  .fundraiser-banner-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
    line-height: 1.25;
  }

  .fundraiser-banner-text p {
    font-size: 15px;
    margin: 0;
    opacity: 0.9;
    color: #fff;
    line-height: 1.45;
  }

  .fundraiser-banner .fundraiser-banner-btn {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

}

@media (min-width: 641px) and (max-width: 900px) {
  #snap-fundraisers .fundraiser-grid-new {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
    padding: 2px 2px 10px;
  }
}

@media (max-width: 900px) {
  #snap-globe.snap-panel {
    background: #f5f5f5;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  #snap-globe .globe-v2 .charity-globe-wrapper {
    padding-top: 0;
    max-height: none;
    height: auto;
    min-height: 480px;
  }

  #snap-globe .globe-v2 .charity-card-bg {
    height: 90px !important;
    padding-top: 16px !important;
    border-radius: 0 !important;
    left: 0 !important;
    transform: none !important;
  }

  #snap-globe .globe-v2 #charityGlobe {
    height: 360px !important;
    min-height: 300px !important;
    overflow: visible !important;
    padding: 16px;
    box-sizing: border-box;
  }

  #snap-globe .globe-v2 #charityGlobe canvas {
    filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.2));
  }

  #snap-globe .globe-v2 .charity-stats {
    position: absolute !important;
    display: flex !important;
    bottom: 10px !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 20px !important;
  }

  #snap-globe .globe-v2 .stat-item {
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  #snap-globe .globe-v2 .charity-card-bg {
    height: 80px !important;
    padding-top: 14px !important;
  }

  #snap-globe .globe-v2 #charityGlobe {
    height: 300px !important;
    min-height: 260px !important;
    overflow: visible !important;
    padding: 12px;
    box-sizing: border-box;
  }

  #snap-globe .globe-v2 .stat-item {
    font-size: 12px !important;
  }
}

/* ============================================================
   THE WORK THAT CONTINUES — LIGHT COLOUR SCHEME
   Overrides the default dark/black backgrounds with a clean
   white scheme using per-card accent hex codes:
     Wells          #005580  (blue)
     Orphan         #EA8A2C  (orange)
     Zakat          #570841  (purple)
   ============================================================ */

/* ============================================================
   WELLS CARD — accent #005580 (blue)
   ============================================================ */
.ts-well .huge-btn {
  background: #005580;
}
.ts-well .huge-btn:hover {
  background: #004060;
}

.ts-well .simple-field label {
  color: #005580;
}

.ts-well .well-mode-btn.active {
  color: #ffffff;
}

.ts-well .well-amt-pill.active {
  border-color: #005580;
  color: #005580;
}

.ts-well .well-custom-amt:focus-within {
  border-color: #005580;
}

.ts-well .simple-select-wrap.open .simple-select-btn {
  border-color: #005580;
}

.ts-well .simple-select-option:hover {
  background: #d8e8f0;
}
.ts-well .simple-select-option.selected {
  background: #a8cce0;
  color: #004060;
  font-weight: 600;
}

.ts-well .well-total {
  background: linear-gradient(135deg, #eef4f8, #daeaf2);
  border-color: #a8cce0;
}

.ts-well .well-total-label {
  color: #004060;
}
.ts-well .well-total-val {
  color: #005580;
}

/* ============================================================
   ORPHAN SPONSORSHIP CARD — accent #EA8A2C (orange)
   ============================================================ */
.ts-orphan .huge-btn {
  background: #EA8A2C;
}
.ts-orphan .huge-btn:hover {
  background: #c97424;
}

/* ============================================================
   ZAKAT CARD — accent #570841 (purple)
   ============================================================ */
.ts-zakat .huge-btn {
  background: #570841;
}
.ts-zakat .huge-btn:hover {
  background: #3d0530;
}

.ts-zakat .simple-field label {
  color: #570841;
}

.ts-zakat .zk-input:focus-within {
  border-color: #570841;
}

.ts-zakat .ts-link-gold {
  color: #570841;
}
.ts-zakat .ts-link-gold:hover {
  color: #3d0530;
}

.ts-zakat .simple-select-wrap.open .simple-select-btn {
  border-color: #570841;
}

.ts-zakat .simple-select-option:hover {
  background: #f0e0ec;
}
.ts-zakat .simple-select-option.selected {
  background: #ddc0d4;
  color: #3d0530;
  font-weight: 600;
}

.well-photo {
  padding: 0;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(180deg, #282828, #0f0f0f);
}

.well-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.well-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40, 40, 40, 0.50), rgba(15, 15, 15, 0.82));
  z-index: 1;
}