/* Sponsored post cards — find-advocates directory */

.fa2-sp-wrap {
  margin: 20px 0 24px;
  padding: 0 12px;
}

.fa2-sp-carousel {
  position: relative;
}

.fa2-sp-carousel__track {
  position: relative;
  min-height: 148px;
}

.fa2-sp-carousel__slide {
  display: none;
}

.fa2-sp-carousel__slide.is-active {
  display: block;
  animation: fa2-sp-fade 0.35s ease;
}

@keyframes fa2-sp-fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.fa2-sp-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--fa2-sp-bg, #0d9488);
  color: var(--fa2-sp-text, #fff);
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.08);
  cursor: default;
  user-select: none;
}

.fa2-sp-card--pastel {
  box-shadow: 0 1px 6px rgb(0 0 0 / 0.06);
}

.fa2-sp-card__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  align-items: stretch;
  min-height: 148px;
}

.fa2-sp-card__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 16px 14px 16px 16px;
  color: var(--fa2-sp-text, #fff);
}

.fa2-sp-card__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fa2-sp-label, rgb(255 255 255 / 0.85));
}

.fa2-sp-card__date {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fa2-sp-sub, rgb(255 255 255 / 0.9));
}

.fa2-sp-card__heading {
  margin: 2px 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.fa2-sp-card__sub {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--fa2-sp-sub, rgb(255 255 255 / 0.92));
}

.fa2-sp-card__cta {
  cursor: pointer;
  user-select: auto;
  display: inline-flex;
  align-self: flex-start;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--fa2-sp-cta-bg, #fff);
  color: var(--fa2-sp-cta-color, #111);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fa2-sp-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.12);
}

.fa2-sp-card__media {
  position: relative;
  overflow: hidden;
  background: rgb(0 0 0 / 0.08);
}

.fa2-sp-card--pastel .fa2-sp-card__media {
  background: rgb(0 0 0 / 0.04);
}

.fa2-sp-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.fa2-sp-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: rgb(255 255 255 / 0.12);
  color: rgb(255 255 255 / 0.7);
}

.fa2-sp-card--pastel .fa2-sp-card__photo--placeholder {
  background: rgb(0 0 0 / 0.05);
  color: rgb(0 0 0 / 0.22);
}

.fa2-sp-card__photo--placeholder .material-symbols-outlined {
  font-size: 2.5rem;
}

.fa2-sp-carousel__rotate-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ab-gray-500, #6b7280);
}

.fa2-sp-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding-bottom: 4px;
}

.fa2-sp-carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--ab-gray-300, #d1d5db);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.fa2-sp-carousel__dot.is-active {
  background: var(--ab-gray-800, #1f2937);
  transform: scale(1.2);
}

@media (max-width: 480px) {
  .fa2-sp-card__inner {
    grid-template-columns: minmax(0, 1fr) 88px;
    min-height: 132px;
  }

  .fa2-sp-card__heading {
    font-size: 1rem;
  }

  .fa2-sp-card__copy {
    padding: 14px 10px 14px 14px;
  }
}
