#page .hover-feature-cards,
.editor-styles-wrapper .hover-feature-cards {

  padding: 36px 16px;
}

#page .hover-feature-cards-grid,
.editor-styles-wrapper .hover-feature-cards-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

#page .hover-feature-cards-grid > .hover-feature-card,
.editor-styles-wrapper .hover-feature-cards-grid > .hover-feature-card {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
}

#page .hover-feature-card,
.editor-styles-wrapper .hover-feature-card {
  background: #b7eec8;
  --wp--style--block-gap: 0;
  cursor: pointer;
  width: 100%;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 180px;
  height: fit-content;
  padding: 20px;
  border-radius: 10px;
  color: #232a35;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#page .hover-feature-card :where(.is-layout-constrained) > *,
.editor-styles-wrapper .hover-feature-card :where(.is-layout-constrained) > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

#page .hover-feature-card.is-layout-constrained > *,
.editor-styles-wrapper .hover-feature-card.is-layout-constrained > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

#page .hover-feature-card__top-controls,
.editor-styles-wrapper .hover-feature-card__top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0 !important;
}

#page .hover-feature-card::before,
#page .hover-feature-card::after,
.editor-styles-wrapper .hover-feature-card::before,
.editor-styles-wrapper .hover-feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#page .hover-feature-card::before,
.editor-styles-wrapper .hover-feature-card::before {
  opacity: 1;
  transition: opacity 0.25s ease;
  background:
    radial-gradient(circle at 15% 22%, rgba(255, 255, 255, 0.22) 0, transparent 48%),
    radial-gradient(circle at 78% 66%, rgba(255, 255, 255, 0.18) 0, transparent 48%),
    linear-gradient(180deg, #b8efcb 0%, #b2eac4 100%);
}

#page .hover-feature-card::after,
.editor-styles-wrapper .hover-feature-card::after {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(180deg, rgba(26, 31, 41, 0) 0%, rgba(26, 31, 41, 0.07) 100%);
}

#page .hover-feature-card__top,
#page .hover-feature-card__body,
.editor-styles-wrapper .hover-feature-card__top,
.editor-styles-wrapper .hover-feature-card__body {
  position: relative;
  z-index: 10;
  margin: 0;
}

#page .hover-feature-card__arrow,
.editor-styles-wrapper .hover-feature-card__arrow {
  width: 40px;
  height: 40px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #dce6dd;
  background: #fff;
  color: #77b18f;
  font-size: 16px;
  line-height: 1;
}

#page .hover-feature-card__cta,
.editor-styles-wrapper .hover-feature-card__cta {
  margin: 0;
  display: none;
  border: 1px solid #7f8690;
  border-radius: 999px;
  padding: 16px 20px;
  font-size: 12px;
  line-height: 1;
  color: #3a404a;
}

/* In Gutenberg editor keep CTA always visible so it can be edited */
.editor-styles-wrapper .hover-feature-card__cta {
  display: inline-flex !important;
}

.editor-styles-wrapper .hover-feature-card__arrow {
  display: inline-flex !important;
}

.editor-styles-wrapper .hover-feature-card.is-active .hover-feature-card__arrow,
.editor-styles-wrapper .hover-feature-card:hover .hover-feature-card__arrow,
.editor-styles-wrapper .hover-feature-card:focus-within .hover-feature-card__arrow {
  display: none !important;
}

/* In editor, keep extra content visible for editing */
.editor-styles-wrapper .hover-feature-card__summary,
.editor-styles-wrapper .hover-feature-card__meta,
.editor-styles-wrapper .hover-feature-card__chips,
.editor-styles-wrapper .hover-feature-card__details {
  display: block !important;
  max-height: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.editor-styles-wrapper .hover-feature-card__chips {
  display: flex !important;
}

#page .hover-feature-card__summary,
.editor-styles-wrapper .hover-feature-card__summary {
  margin: 24px !important;
  max-width: 90%;
  color: rgba(58, 66, 80, 0.85);
  font-size: 15px;
  line-height: 1.8;
  display: none;
  order: 2;
}

#page .hover-feature-card__meta,
.editor-styles-wrapper .hover-feature-card__meta {
  margin: 8px 0 0;
  color: rgba(58, 66, 80, 0.85);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 19px;
  letter-spacing: 0.03em;
  display: none;
  order: 3;
  margin-left: 0 !important;
}

#page .hover-feature-card__title,
.editor-styles-wrapper .hover-feature-card__title {
  margin: 16px 0 0;
  color: #333a49;
  font-family: 'TiemposHeadline', serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.02em;
  order: 4;
}

#page .hover-feature-card__body,
.editor-styles-wrapper .hover-feature-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: auto;
}

#page .hover-feature-card.is-active .hover-feature-card__body,
#page .hover-feature-card:hover .hover-feature-card__body,
#page .hover-feature-card:focus-within .hover-feature-card__body,
.editor-styles-wrapper .hover-feature-card.is-active .hover-feature-card__body,
.editor-styles-wrapper .hover-feature-card:hover .hover-feature-card__body,
.editor-styles-wrapper .hover-feature-card:focus-within .hover-feature-card__body {
    align-items: stretch;
    text-align: left;
	width: 100%;
  justify-content: flex-end;
}

#page .hover-feature-card:nth-child(3).is-active .hover-feature-card__body,
#page .hover-feature-card:nth-child(3):hover .hover-feature-card__body,
#page .hover-feature-card:nth-child(3):focus-within .hover-feature-card__body,
.editor-styles-wrapper .hover-feature-card:nth-child(3).is-active .hover-feature-card__body,
.editor-styles-wrapper .hover-feature-card:nth-child(3):hover .hover-feature-card__body,
.editor-styles-wrapper .hover-feature-card:nth-child(3):focus-within .hover-feature-card__body {
  justify-content: space-between;
}

#page .hover-feature-card.is-active .hover-feature-card__top-controls,
#page .hover-feature-card:hover .hover-feature-card__top-controls,
#page .hover-feature-card:focus-within .hover-feature-card__top-controls,
.editor-styles-wrapper .hover-feature-card.is-active .hover-feature-card__top-controls,
.editor-styles-wrapper .hover-feature-card:hover .hover-feature-card__top-controls,
.editor-styles-wrapper .hover-feature-card:focus-within .hover-feature-card__top-controls {
  justify-content: center;
  margin-left: 0 !important;
}

#page .hover-feature-card.is-active .hover-feature-card__summary,
#page .hover-feature-card:hover .hover-feature-card__summary,
#page .hover-feature-card:focus-within .hover-feature-card__summary,
.editor-styles-wrapper .hover-feature-card.is-active .hover-feature-card__summary,
.editor-styles-wrapper .hover-feature-card:hover .hover-feature-card__summary,
.editor-styles-wrapper .hover-feature-card:focus-within .hover-feature-card__summary {
  text-align: left;
  margin-left: 0 !important;
}

#page .hover-feature-card.is-active .hover-feature-card__title,
#page .hover-feature-card:hover .hover-feature-card__title,
#page .hover-feature-card:focus-within .hover-feature-card__title,
.editor-styles-wrapper .hover-feature-card.is-active .hover-feature-card__title,
.editor-styles-wrapper .hover-feature-card:hover .hover-feature-card__title,
.editor-styles-wrapper .hover-feature-card:focus-within .hover-feature-card__title {
  text-align: center;
  margin-top: auto;
  order: 99;
}

#page .hover-feature-card.is-active .hover-feature-card__details,
#page .hover-feature-card:hover .hover-feature-card__details,
#page .hover-feature-card:focus-within .hover-feature-card__details,
.editor-styles-wrapper .hover-feature-card.is-active .hover-feature-card__details,
.editor-styles-wrapper .hover-feature-card:hover .hover-feature-card__details,
.editor-styles-wrapper .hover-feature-card:focus-within .hover-feature-card__details {
  order: 50;
}

#page .hover-feature-card__details,
.editor-styles-wrapper .hover-feature-card__details {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
  order: 5;
}

#page .hover-feature-card__details p,
.editor-styles-wrapper .hover-feature-card__details p {
  margin: 0;
  color: rgba(49, 57, 69, 0.8);
  font-size: 14px;
  line-height: 1.6;
}

#page .hover-feature-card__chips,
.editor-styles-wrapper .hover-feature-card__chips {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 6px;
  order: 1;
}

#page .hover-feature-card__chip,
.editor-styles-wrapper .hover-feature-card__chip {
  margin: 0;
  border: 1px solid #7f8690;
  border-radius: 999px;
  padding: 16px 20px;
  font-size: 12px;
  line-height: 1;
  color: #3a404a;
  background: transparent;
}

#page .hover-feature-card.is-active .hover-feature-card__arrow,
#page .hover-feature-card:hover .hover-feature-card__arrow,
.editor-styles-wrapper .hover-feature-card.is-active .hover-feature-card__arrow,
.editor-styles-wrapper .hover-feature-card:hover .hover-feature-card__arrow {
  display: none !important;
}

#page .hover-feature-card.is-active .hover-feature-card__cta,
#page .hover-feature-card:hover .hover-feature-card__cta,
.editor-styles-wrapper .hover-feature-card.is-active .hover-feature-card__cta,
.editor-styles-wrapper .hover-feature-card:hover .hover-feature-card__cta {
  display: inline-flex !important;
}

#page .hover-feature-card:not(.is-active):not(:hover):not(:focus-within) .hover-feature-card__arrow,
.editor-styles-wrapper .hover-feature-card:not(.is-active):not(:hover):not(:focus-within) .hover-feature-card__arrow {
  display: inline-flex !important;
}

#page .hover-feature-cards-grid.has-active .hover-feature-card:not(.is-active) .hover-feature-card__arrow,
.editor-styles-wrapper .hover-feature-cards-grid.has-active .hover-feature-card:not(.is-active) .hover-feature-card__arrow {
  display: inline-flex !important;
}

#page .hover-feature-card:first-child:not(.is-active) .hover-feature-card__arrow,
.editor-styles-wrapper .hover-feature-card:first-child:not(.is-active) .hover-feature-card__arrow,
#page .hover-feature-cards-grid.has-active .hover-feature-card:first-child:not(.is-active) .hover-feature-card__arrow,
.editor-styles-wrapper .hover-feature-cards-grid.has-active .hover-feature-card:first-child:not(.is-active) .hover-feature-card__arrow {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#page .hover-feature-card:first-child:not(.is-active) .hover-feature-card__cta,
.editor-styles-wrapper .hover-feature-card:first-child:not(.is-active) .hover-feature-card__cta {
  display: none !important;
}

#page .hover-feature-cards-grid.has-active .hover-feature-card:not(.is-active) .hover-feature-card__cta,
.editor-styles-wrapper .hover-feature-cards-grid.has-active .hover-feature-card:not(.is-active) .hover-feature-card__cta {
  display: none !important;
}

#page .hover-feature-card.is-active,
#page .hover-feature-card:hover,
#page .hover-feature-card:focus-within,
.editor-styles-wrapper .hover-feature-card.is-active,
.editor-styles-wrapper .hover-feature-card:hover,
.editor-styles-wrapper .hover-feature-card:focus-within {
  background: #F3F4F8;
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(23, 31, 41, 0.12);
}

#page .hover-feature-card.is-active::after,
#page .hover-feature-card:hover::after,
#page .hover-feature-card:focus-within::after,
.editor-styles-wrapper .hover-feature-card.is-active::after,
.editor-styles-wrapper .hover-feature-card:hover::after,
.editor-styles-wrapper .hover-feature-card:focus-within::after {
  opacity: 1;
}

#page .hover-feature-card.is-active .hover-feature-card__details,
#page .hover-feature-card:hover .hover-feature-card__details,
#page .hover-feature-card:focus-within .hover-feature-card__details,
.editor-styles-wrapper .hover-feature-card.is-active .hover-feature-card__details,
.editor-styles-wrapper .hover-feature-card:hover .hover-feature-card__details,
.editor-styles-wrapper .hover-feature-card:focus-within .hover-feature-card__details {
  margin: 24px !important;
  max-height: 96px;
  opacity: 1;
  pointer-events: auto;
  margin-left: 0 !important;
}

#page .hover-feature-card.is-active .hover-feature-card__summary,
#page .hover-feature-card:hover .hover-feature-card__summary,
#page .hover-feature-card:focus-within .hover-feature-card__summary,
.editor-styles-wrapper .hover-feature-card.is-active .hover-feature-card__summary,
.editor-styles-wrapper .hover-feature-card:hover .hover-feature-card__summary,
.editor-styles-wrapper .hover-feature-card:focus-within .hover-feature-card__summary {
  display: block;
}

#page .hover-feature-card.is-active .hover-feature-card__meta,
#page .hover-feature-card:hover .hover-feature-card__meta,
#page .hover-feature-card:focus-within .hover-feature-card__meta,
.editor-styles-wrapper .hover-feature-card.is-active .hover-feature-card__meta,
.editor-styles-wrapper .hover-feature-card:hover .hover-feature-card__meta,
.editor-styles-wrapper .hover-feature-card:focus-within .hover-feature-card__meta {
  display: block;
}

#page .hover-feature-card.is-active .hover-feature-card__chips,
#page .hover-feature-card:hover .hover-feature-card__chips,
#page .hover-feature-card:focus-within .hover-feature-card__chips,
.editor-styles-wrapper .hover-feature-card.is-active .hover-feature-card__chips,
.editor-styles-wrapper .hover-feature-card:hover .hover-feature-card__chips,
.editor-styles-wrapper .hover-feature-card:focus-within .hover-feature-card__chips {
  display: flex;
}

#page .hover-feature-card.is-active .hover-feature-card__title,
#page .hover-feature-card:hover .hover-feature-card__title,
#page .hover-feature-card:focus-within .hover-feature-card__title,
.editor-styles-wrapper .hover-feature-card.is-active .hover-feature-card__title,
.editor-styles-wrapper .hover-feature-card:hover .hover-feature-card__title,
.editor-styles-wrapper .hover-feature-card:focus-within .hover-feature-card__title {
  font-size: 40px;
  margin-left: 0 !important;
  text-align: left;

}

#page .hover-feature-card:nth-child(-n + 2).is-active .hover-feature-card__title,
#page .hover-feature-card:nth-child(-n + 2):hover .hover-feature-card__title,
#page .hover-feature-card:nth-child(-n + 2):focus-within .hover-feature-card__title,
.editor-styles-wrapper .hover-feature-card:nth-child(-n + 2).is-active .hover-feature-card__title,
.editor-styles-wrapper .hover-feature-card:nth-child(-n + 2):hover .hover-feature-card__title,
.editor-styles-wrapper .hover-feature-card:nth-child(-n + 2):focus-within .hover-feature-card__title {
  height: 50%;
  display: flex;
  align-items: flex-end;
}

#page .hover-feature-card.is-active::before,
#page .hover-feature-card:hover::before,
#page .hover-feature-card:focus-within::before,
.editor-styles-wrapper .hover-feature-card.is-active::before,
.editor-styles-wrapper .hover-feature-card:hover::before,
.editor-styles-wrapper .hover-feature-card:focus-within::before {
  opacity: 0;
}

@media (min-width: 768px) {
  #page .hover-feature-cards,
  .editor-styles-wrapper .hover-feature-cards {
    padding: 36px 16px;
  }

  #page .hover-feature-cards-grid,
  .editor-styles-wrapper .hover-feature-cards-grid {
    display: flex;
    gap: 12px;
    align-items: stretch;
  }

  #page .hover-feature-card,
  .editor-styles-wrapper .hover-feature-card {
    flex: 1 1 0;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    min-height: 450px;
    height: 450px;
    transition: flex 0.35s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }

  #page .hover-feature-cards-grid.has-active .hover-feature-card,
  .editor-styles-wrapper .hover-feature-cards-grid.has-active .hover-feature-card {
    flex: 1 1 0;
  }

  #page .hover-feature-cards-grid.has-active .hover-feature-card.is-active,
  .editor-styles-wrapper .hover-feature-cards-grid.has-active .hover-feature-card.is-active {
    flex: 2.35 1 0;
  }

  #page .hover-feature-cards-grid.has-active .hover-feature-card:not(.is-active) .hover-feature-card__title,
  .editor-styles-wrapper .hover-feature-cards-grid.has-active .hover-feature-card:not(.is-active) .hover-feature-card__title {
    font-size: 24px;
  }

  #page .hover-feature-cards-grid.has-active .hover-feature-card:not(.is-active) .hover-feature-card__summary,
  #page .hover-feature-cards-grid.has-active .hover-feature-card:not(.is-active) .hover-feature-card__meta,
  #page .hover-feature-cards-grid.has-active .hover-feature-card:not(.is-active) .hover-feature-card__chips,
  .editor-styles-wrapper .hover-feature-cards-grid.has-active .hover-feature-card:not(.is-active) .hover-feature-card__summary,
  .editor-styles-wrapper .hover-feature-cards-grid.has-active .hover-feature-card:not(.is-active) .hover-feature-card__meta,
  .editor-styles-wrapper .hover-feature-cards-grid.has-active .hover-feature-card:not(.is-active) .hover-feature-card__chips {
    display: none;
  }
}
