/* Clone-specific overrides. Keeps the original look while making the
   blog listing and forms work without the WordPress backend. */

/* ---- Blog listing: static, responsive grid (replaces isotope masonry) ---- */
.eael-post-grid-container .eael-post-appender.clone-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  height: auto !important;
  position: static !important;
}

.clone-grid .eael-grid-post {
  float: none !important;
  position: static !important;
  width: auto !important;
  left: auto !important;
  top: auto !important;
  margin: 0 !important;
  padding: 10px !important;
}

.clone-grid .eael-grid-post-holder {
  height: 100%;
}

.clone-grid .eael-entry-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.clone-grid .eael-entry-title {
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .eael-post-grid-container .eael-post-appender.clone-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Load more button (rendered as an <a> so it works without JS) ---- */
.clone-load-more {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.clone-load-more.is-busy {
  pointer-events: none;
  opacity: 0.7;
}

.clone-load-more.is-busy .eael-btn-loader {
  display: inline-block;
}

.clone-load-more.is-hidden,
.eael-load-more-button-wrap.is-hidden {
  display: none !important;
}

.clone-load-more .eael_load_more_text {
  text-decoration: none;
}

/* ---- Form status messages ---- */
.clone-form-status {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.5;
  display: none;
}

.clone-form-status.is-visible {
  display: block;
}

.clone-form-status.is-success {
  background: #e7f6ec;
  border: 1px solid #2e9e5b;
  color: #1c6b3c;
}

.clone-form-status.is-error {
  background: #fdecec;
  border: 1px solid #d64545;
  color: #8a1f1f;
}

.clone-form-honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Search page ---- */
.clone-search-header {
  padding: 20px 10px 10px;
}
.clone-search-title {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.clone-search-form {
  display: flex;
  gap: 10px;
  max-width: 620px;
}
.clone-search-form input[type='search'] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #cfd3dc;
  border-radius: 6px;
  font-size: 16px;
}
.clone-search-form button {
  padding: 11px 22px;
  border: 0;
  border-radius: 6px;
  background: #3a2e8f;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.clone-search-form button:hover {
  background: #2c2270;
}
.clone-search-summary {
  margin: 14px 0 0;
  font-size: 16px;
  color: #4a4f5c;
}
@media (max-width: 540px) {
  .clone-search-form {
    flex-direction: column;
  }
}

