/* Static-hosting safeguards for the WordPress homepage mirror. */

/* The original location grid was populated by WordPress AJAX. The static copy
   ships the cards in the HTML, so make their layout and visibility explicit. */
#ymc-filter-1 .js-ajax-content {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 30px !important;
  min-height: 0 !important;
  margin-top: 32px;
}

#ymc-filter-1 article.post-card:not([hidden]) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  background: #fff;
  color: #0f274d;
}

#ymc-filter-1 article.post-card[hidden] {
  display: none !important;
}

#ymc-filter-1 .post-card__column {
  box-sizing: border-box;
}

#ymc-filter-1 .post-card__image img {
  width: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

#ymc-filter-1 .post-card__title,
#ymc-filter-1 .post-card__shortcode,
#ymc-filter-1 .post-card__button-wrapper {
  padding-left: 16px;
  padding-right: 16px;
}

#ymc-filter-1 .post-card__shortcode {
  overflow-wrap: anywhere;
}

#ymc-filter-1 .pagination--numeric {
  justify-content: center;
  padding-bottom: 8px !important;
}

/* Divi left an empty spacer row between the orange feature section and the
   trust/reviews section. It is unnecessary on the static homepage. */
.home .et_pb_section_3 > .et_pb_row_5 {
  display: none !important;
}

.home .et_pb_section_3 {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}

.home .et_pb_section_3 > .et_pb_row_6 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Divi animation classes can remain transparent when their WordPress runtime
   is absent. Keep homepage content visible in the static build. */
.home #main-content .et_animated,
.home #main-content .et-waypoint {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

@media (max-width: 980px) {
  #ymc-filter-1 .js-ajax-content {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }
}

@media (max-width: 640px) {
  #ymc-filter-1 .js-ajax-content {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-top: 24px;
  }

  .home .et_pb_section_3 {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }
}
