.homepage-ourachievements {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  overflow: visible;
}

.hoa-header {
  text-align: center;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-lg);
}

.hoa-eyebrow {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--accent-color);
  color: var(--ul-white);
  border-radius: var(--radius-lg);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.hoa-headline {
  margin: 0 0 var(--space-md) 0;
}

.hoa-intro {
  margin: 0;
  opacity: 0.9;
}

.hoa-settlements {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  max-width: 100%;
  position: relative;
  z-index: 10;
}

.hoa-card-wrapper {
  position: relative;
  width: 25rem;
  height: 25rem;
  margin: 0 auto;
  z-index: 1;
}

.hoa-settlement-card {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Center the card by default */
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--ul-black);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  /* Updated transition to include specific transform */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    border-radius 0.4s ease, background 0.3s ease, border-color 0.3s ease,
    filter 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  cursor: pointer;
  z-index: 10;
  will-change: transform;
}

.hoa-settlement-card.is-blurred {
  opacity: 0.6;
  filter: blur(2px);
}

.hoa-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 34rem;
  max-width: 90%;
  padding: var(--space-md);
  transform: scale(1);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hoa-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--ul-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2xs);
  transition: background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.hoa-icon i {
  font-size: 1.6rem;
}

.hoa-amount {
  margin: 0;
  color: var(--ul-cta);
  font-weight: 700;
  font-size: 2rem;
  transition: color 0.3s ease;
}

.hoa-title {
  margin: 0;
  color: var(--accent-color);
  font-size: 1.6rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.hoa-indicator {
  margin-top: var(--space-2xs);
  opacity: 0.6;
  color: var(--accent-color);
  transition: opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease,
    height 0.3s ease;
  display: block;
  height: 20px;
}

.hoa-description-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.hoa-description {
  margin: 0;
  line-height: 1.5;
  font-size: 1.5rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
  font-size: 1.4rem;
}

.hoa-disclaimer {
  text-align: center;
  max-width: 80rem;
  margin: var(--space-sm) auto 0;
  width: 100%;
}

.hoa-disclaimer small {
  display: inline-block;
  opacity: 0.7;
}

.hoa-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}

.hoa-featured {
  background: var(--ul-primary);
  color: var(--ul-white);
  border-color: var(--ul-primary);
}

.hoa-featured .hoa-amount,
.hoa-featured .hoa-title {
  color: var(--ul-white);
}

.hoa-featured .hoa-icon {
  background: var(--ul-white);
  color: var(--ul-primary);
}

.hoa-featured .hoa-indicator {
  color: var(--ul-white);
}

@media (min-width: 1024px) {
  .hoa-settlements {
    grid-template-columns: repeat(4, 1fr);
  }

  .hoa-card-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hoa-settlement-card {
    aspect-ratio: 1 / 1;
  }

  .hoa-settlement-card:hover {
    transform: translate(-50%, -50%) scale(1.4);
    z-index: 100;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    background: var(--accent-color);
    border-color: var(--accent-color);
    aspect-ratio: 1 / 1;
	width: 28rem;
	height: 28rem;
  }

  .hoa-settlement-card:hover .hoa-card-inner {
    transform: scale(0.694);
    padding: var(--space-sm);
  }

  .hoa-settlement-card:hover .hoa-amount,
  .hoa-settlement-card:hover .hoa-title,
  .hoa-settlement-card:hover .hoa-description {
    color: var(--ul-white);
  }

  .hoa-settlement-card:hover .hoa-icon {
    background: var(--ul-white);
    color: var(--accent-color);
  }

  .hoa-settlement-card:hover .hoa-indicator {
    opacity: 0;
    transform: scale(0);
    height: 0;
    margin: 0;
  }

  .hoa-settlement-card:hover .hoa-description-wrap {
    grid-template-rows: 1fr;
  }

  .hoa-settlement-card:hover .hoa-description {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1023px) {
  .hoa-settlements {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .hoa-card-wrapper {
    width: 100%;
    height: auto;
    min-height: 14rem;
  }

  .hoa-settlement-card {
    /* On mobile we DO want relative so it flows naturally */
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    min-height: 14rem;
    border-radius: var(--radius-lg);
  }

  .hoa-settlement-card.is-open {
    background: var(--accent-color);
    border-color: var(--accent-color);
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .hoa-settlement-card.is-open .hoa-amount,
  .hoa-settlement-card.is-open .hoa-title,
  .hoa-settlement-card.is-open .hoa-description {
    color: var(--ul-white);
  }

  .hoa-settlement-card.is-open .hoa-icon {
    background: var(--ul-white);
    color: var(--accent-color);
  }

  .hoa-settlement-card.is-open .hoa-indicator {
    transform: rotate(45deg);
    color: var(--ul-white);
  }

  .hoa-settlement-card.is-open .hoa-description-wrap {
    grid-template-rows: 1fr;
  }

  .hoa-settlement-card.is-open .hoa-description {
    opacity: 1;
    transform: translateY(0);
  }

  .hoa-card-inner {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hoa-settlements {
    grid-template-columns: repeat(2, 1fr);
  }
}