.wing-backdrop {
  inset: 182px 24px 150px;
  opacity: 0.75;
  pointer-events: none;
  position: absolute;
  z-index: 1;
  position: fixed;
}

.wing-svg {
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}


.community-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 40px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 290px;
  justify-content: flex-end;
  padding: 16px 22px 18px;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  width: 100%;
}

.community-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(97, 118, 75, 0.28), var(--card-shadow);
}

.community-card:hover .map-wrap img {
  filter: brightness(1) saturate(1%) invert(39%) sepia(16%) saturate(500%) hue-rotate(35deg) brightness(85%) contrast(85%) drop-shadow(2px 4px 6px black) opacity(0.8);
}

/* .community-card.is-active {
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(97, 118, 75, 0.28), var(--card-shadow);
} */

.map-wrap {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  margin-top: 2px;
  width: 100%;
}

.map-image {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.community-name {
  color: #1e1e1e;
  font-size: 30px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.map-image-pakistan {
  width: 208px;
}

.map-image-bangladesh {
  width: 161px;
}

.map-image-india {
  width: 179px;
}

.map-image-turkey {
  width: 267px;
}

.map-image-arab {
  width: 228px;
}

.map-image-iranian {
  width: 223px;
}

.legend-row {
  border-top: 1px solid #000000;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 24px;
}

.legend-item {
  align-items: center;
  color: #000000;
  display: inline-flex;
  font-size: 21px;
  font-style: italic;
  font-weight: 600;
  gap: 8px;
  line-height: 1;
  opacity: 0.92;
  text-transform: uppercase;
  transition: opacity 120ms ease, transform 120ms ease;
}

.legend-item img {
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  height: 20px;
  object-fit: cover;
  width: 30px;
}

.legend-item.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 1279px) {
  .landing-page {
    min-height: auto;
  }

  .community-name {
    font-size: clamp(26px, 2.2vw, 30px);
  }
}



@media (max-width: 1024px) {
  .wing-backdrop {
    inset: 170px -24px 140px;
  }

  .community-card {
    height: 272px;
  }

  .map-image-pakistan {
    width: 184px;
  }

  .map-image-bangladesh {
    width: 150px;
  }

  .map-image-india {
    width: 166px;
  }

  .map-image-turkey {
    width: 232px;
  }

  .map-image-arab {
    width: 202px;
  }

  .map-image-iranian {
    width: 196px;
  }

  .community-name {
    font-size: 30px;
  }

  .legend-item {
    font-size: 19px;
  }
}

@media (max-width: 767px) {
  .landing-page {
    padding-bottom: 12px;
  }

  .wing-backdrop {
    inset: 164px -170px 210px;
    opacity: 0.52;
  }

  .community-card {
    height: 246px;
    max-width: 340px;
    margin-inline: auto;
  }

  .map-image-pakistan {
    width: 172px;
  }

  .map-image-bangladesh {
    width: 140px;
  }

  .map-image-india {
    width: 155px;
  }

  .map-image-turkey {
    width: 214px;
  }

  .map-image-arab {
    width: 188px;
  }

  .map-image-iranian {
    width: 182px;
  }

  .community-name {
    font-size: 28px;
  }

  .legend-row {
    gap: 14px 20px;
    justify-content: flex-start;
    padding-top: 22px;
  }

  .legend-item {
    font-size: 17px;
  }
}

@media (max-width: 420px) {
  .wing-backdrop {
    inset: 150px -190px 220px;
  }

  .community-card {
    height: 238px;
  }

  .community-name {
    font-size: 26px;
  }

  .legend-item {
    font-size: 16px;
  }
}