:root {
  --ha-pink: #f06fb1;
  --ha-pink-soft: #fff2f8;
  --ha-lilac: #8b78e6;
  --ha-lilac-soft: #f5f1ff;
  --ha-text: #5d5663;
  --ha-shadow: 0 12px 30px rgba(91, 69, 105, 0.08);
  --ha-radius: 24px;
}

.ha-post-shell {
  background: #fff;
  border: 1px solid #f3e7ee;
  border-radius: 28px;
  padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--ha-shadow);
}

.ha-kicker {
  color: var(--ha-lilac);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.ha-soft-quote {
  background: linear-gradient(180deg, var(--ha-pink-soft), #fff);
  border: 1px solid #f6dbe9;
  border-radius: 22px;
  padding: 16px 20px;
}

.ha-product-columns .wp-block-column {
  background: #fffdfd;
  border: 1px solid #f4ebf0;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(91, 69, 105, 0.05);
}

.ha-image-text-block {
  display: grid;
  grid-template-columns: minmax(0, var(--ha-image-width, 280px)) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  margin: 1.5rem 0;
}

.ha-image-text--right {
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--ha-image-width, 280px));
}

.ha-image-text--right .ha-image-text-media {
  order: 2;
}

.ha-image-text--right .ha-image-text-content {
  order: 1;
}

.ha-image-text-style--card {
  background: linear-gradient(180deg, #ffffff, #fffafe);
  border: 1px solid #f1e4ec;
  border-radius: 28px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--ha-shadow);
}

.ha-image-text-style--soft {
  background: linear-gradient(180deg, var(--ha-pink-soft), #fff);
  border: 1px solid #f4ddea;
  border-radius: 28px;
  padding: clamp(18px, 3vw, 28px);
}

.ha-image-text-style--plain {
  padding: 0;
}

.ha-image-text-media img,
.entry-content .ha-image-text-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(91, 69, 105, 0.08);
  background: #fff;
}

.ha-image-text-size--small .ha-image-text-media {
  --ha-image-width: 200px;
}

.ha-image-text-size--medium .ha-image-text-media {
  --ha-image-width: 280px;
}

.ha-image-text-size--large .ha-image-text-media {
  --ha-image-width: 360px;
}

.ha-image-text-size--custom .ha-image-text-media {
  width: var(--ha-image-width, 280px);
}

.ha-image-text-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fff3f8);
  border: 2px dashed #e8bfd3;
  color: var(--ha-lilac);
  font-weight: 600;
}

.ha-image-text-content h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #443b49;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.ha-image-text-body,
.ha-image-text-content p,
.ha-post-shell p,
.ha-post-shell li {
  color: var(--ha-text);
  line-height: 1.75;
}

.ha-image-text-button-wrap {
  margin-top: 1rem;
}

.ha-image-text-button {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(90deg, var(--ha-pink), var(--ha-lilac));
  color: #fff;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(171, 101, 164, 0.18);
}

.ha-image-text-button:hover,
.ha-image-text-button:focus {
  color: #fff;
  opacity: 0.96;
}

/* Make core wrapped images behave more reliably on desktop */
.entry-content .wp-block-image.alignleft,
.entry-content .wp-block-image.is-style-default.alignleft {
  float: left;
  margin-right: 22px;
  margin-bottom: 16px;
  width: auto;
  max-width: min(42%, 320px);
}

.entry-content .wp-block-image.alignright,
.entry-content .wp-block-image.is-style-default.alignright {
  float: right;
  margin-left: 22px;
  margin-bottom: 16px;
  width: auto;
  max-width: min(42%, 320px);
}

.entry-content .wp-block-image.alignleft img,
.entry-content .wp-block-image.alignright img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.entry-content::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 782px) {
  .ha-image-text-block,
  .ha-image-text--right {
    grid-template-columns: 1fr;
  }

  .ha-image-text--right .ha-image-text-media,
  .ha-image-text--right .ha-image-text-content {
    order: initial;
  }

  .ha-image-text-media,
  .ha-image-text-size--small .ha-image-text-media,
  .ha-image-text-size--medium .ha-image-text-media,
  .ha-image-text-size--large .ha-image-text-media,
  .ha-image-text-size--custom .ha-image-text-media {
    width: 100%;
    --ha-image-width: 100%;
  }

  .entry-content .wp-block-image.alignleft,
  .entry-content .wp-block-image.alignright,
  .entry-content .wp-block-image.is-style-default.alignleft,
  .entry-content .wp-block-image.is-style-default.alignright {
    float: none;
    margin: 0 0 16px 0;
    max-width: 100%;
    width: 100%;
  }

  .entry-content .wp-block-image.alignleft img,
  .entry-content .wp-block-image.alignright img {
    width: 100%;
  }
}
