/* === Mobile First === */
.hp-feature-section {
  background: var(--deep-blue);
  color: var(--white);
  position: relative;
  padding: 2rem 0 3rem 0;
}

.hp-feature-inner {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hp-feature-text h2 {
  font-size: 2rem;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hp-feature-text p {
  margin-bottom: 1rem;
}

.hp-feature-bottom-text,
.feature-image-mobile {
  display: none; /* Hide on mobile by default */
}

.hp-feature-bullets {
  list-style: none;
  padding: 0.75rem 1rem;
  margin: 0;
  display: block;
}

.hp-feature-bullets li {
  display: flex;
  align-items: flex-start; /* align icon to first text line */
  gap: 0.75rem; /* consistent space between icon and text */
  margin-bottom: 0.75rem;
}

.hp-feature-bullets i {
  margin-right: 0.1rem;
  margin-top: 0.4rem; /* optional micro tweak for optical alignment */
  color: var(--white);
  flex-shrink: 0;
}

.hp-feature-image img {
  margin: 1.5rem auto 0;
  max-width: 264px;
  width: 100%;
  aspect-ratio: 1; /* square images */
  height: auto;
}

.feature-image-mobile {
  display: block;
}

.feature-image-desktop {
  display: none;
}

@media (min-width: 48rem) and (max-width: 64rem) {
  .hp-feature-image img {
    max-width: 300px;
  }
}

/* === Desktop (64rem+) === */
@media (min-width: 64rem) {
  .hp-feature-section {
    padding: 3rem 0;
  }

  .hp-feature-text h2 {
    font-size: 2.5rem;
    margin: 1rem 0 1.25rem;
  }

  .hp-feature-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 4rem;
  }

  .hp-feature-text {
    flex: 1;
    order: 2;
  }

  .hp-feature-image {
    flex: 1;
    order: 1;
    max-width: 300px;
    margin: 2rem 0;
    contain: layout;
  }

  .feature-image-mobile {
    display: none;
  }

  .hp-feature-inner .feature-image-desktop {
    display: block;
    height: auto;
    max-width: 300px;
  }

  .hp-feature-bullets,
  .hp-feature-bottom-text {
    display: block;
  }
}

/* === Large Desktop (1440px / 90rem +) === */
@media (min-width: 90rem) {
  .hp-feature-image {
    max-width: 400px;
  }
  .hp-feature-image img {
    max-width: 400px;
  }
  .hp-feature-inner .feature-image-desktop {
    max-width: 400px;
  }
  .hp-feature-text h2 {
    font-size: 3rem;
  }
}
