/* ==========================================================================
   communities.aspx — page-specific styles
   ========================================================================== */

@media (max-width: 992px) {
  .ul-services.ul-section-spacing {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
}

/* ---------- community cards slider ---------- */
/* Layout, spacing, and shape are handled with Bootstrap utility classes
   in the markup (d-flex, position-absolute, rounded-circle, mb-3, mw-100,
   text-white, etc). Only what Bootstrap can't express lives here. */

.community-card {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.25s ease;
}

.community-card:hover,
.community-card:focus-visible {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.community-card-cover {
  z-index: 0;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.community-card:hover .community-card-cover,
.community-card:focus-visible .community-card-cover {
  transform: scale(1.08);
}

.community-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.community-card-logo,
.community-card-title {
  z-index: 2;
}

.community-card-logo {
  width: 90px;
  height: 90px;
}

.community-card-title {
  font-size: clamp(0.9rem, 2.2vw + 0.5rem, 1.25rem);
}

.community-card-title small {
  font-size: clamp(0.7rem, 1.4vw + 0.4rem, 0.875rem);
}

.community-slider .swiper-button-prev,
.community-slider .swiper-button-next {
  --swiper-navigation-size: 16px;
  width: 40px;
  height: 40px;
  margin-top: 0;
  color: var(--ul-primary, #000);
}

.community-slider .swiper-button-disabled {
  opacity: 0.35;
}

@media (max-width: 767px) {
  .community-card {
    aspect-ratio: 3 / 6;
  }

  .community-card-logo {
    width: 70px;
    height: 70px;
  }

  .community-slider .swiper-button-prev,
  .community-slider .swiper-button-next {
    width: 32px;
    height: 32px;
  }
}
