/* Block: Feature Section
 * Placed in blocks/feature-section/style.css so ACF enqueues it with the block.
 */

.feature-section-block .feature-section {
  padding: 3.5rem 0;
}

.feature-section-block .feature-section__title {
  margin: 0 auto;
  max-width: 35rem;
  color: var(--darkBlack);
  font-family: "DM Serif Display", serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1;
  text-align: center;
}

.feature-section-block .feature-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 2rem;
}

.feature-section-block .feature-section__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 2rem 1.5rem;
  border: 0;
  text-align: center;
}

.feature-section-block .feature-section__card:not(:last-child) {
  border-bottom: 1px solid #d9dee5;
}

.feature-section-block .feature-section__icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  object-fit: cover;
}

.feature-section-block .feature-section__card-title {
  margin: 1.25rem 0 0.75rem;
  color: var(--darkBlack);
  font-size: 1.35rem;
  line-height: 1.2;
}

.feature-section-block .feature-section__card-copy {
  margin: 0;
  max-width: 34ch;
  color: #2f3442;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .feature-section-block .feature-section__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-section-block .feature-section__card,
  .feature-section-block .feature-section__card:not(:last-child) {
    padding: 2.5rem 2rem;
    border-right: 0;
    border-bottom: 1px solid #d9dee5;
  }

  .feature-section-block .feature-section__card:nth-child(3n + 1):not(:last-child),
  .feature-section-block .feature-section__card:nth-child(3n + 2):not(:last-child) {
    border-right: 1px solid #d9dee5;
  }

  .feature-section-block .feature-section__grid--desktop-last-row-1 .feature-section__card:last-child {
    border-bottom: 0;
  }

  .feature-section-block .feature-section__grid--desktop-last-row-2 .feature-section__card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .feature-section-block .feature-section__grid--desktop-last-row-3 .feature-section__card:nth-last-child(-n + 3) {
    border-bottom: 0;
  }
}
