/* ============================================================
   Chloe Blog — listing page
   hero + subscribe card / tag pills / featured post / grid / pagination
   Fonts follow the theme vars (--font-heading / --font-body / --font-ui).
   ============================================================ */

/* -------------------- Layout wrap -------------------- */
.chloe-blog-main { background: #FFFDFD; padding: 44px 0 90px; }
.chloe-blog-container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* -------------------- Tag filter pills -------------------- */
.chloe-blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.chloe-blog-pill {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: #0B254C;
  background: #ffffff;
  border: 1px solid #EADFF0;
  border-radius: 999px;
  padding: 9px 20px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.chloe-blog-pill:hover { border-color: #F061A9; color: #F061A9; }
.chloe-blog-pill.is-active {
  background: #F061A9;
  border-color: #F061A9;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(240, 97, 169, 0.3);
}

/* -------------------- Shared post bits -------------------- */
.chloe-blog-readtime {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F061A9;
  margin-bottom: 12px;
}
.chloe-blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chloe-blog-tag {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E24E97;
  background: #FCE3EF;
  border-radius: 999px;
  padding: 5px 11px;
  transition: background 0.2s ease;
}
.chloe-blog-tag:hover { background: #F9CDE2; }
.chloe-blog-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
}
.chloe-blog-author { font-weight: 700; color: #0B254C; }
.chloe-blog-dot { color: #C9CDD6; }
.chloe-blog-date { color: #8b93a1; }
.chloe-blog-readmore {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  color: #F061A9;
  transition: gap 0.25s ease;
}
.chloe-blog-readmore:hover { gap: 10px; }

/* -------------------- Featured post -------------------- */
.chloe-blog-featured {
  display: grid;
  grid-template-columns: 45% 1fr;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(90, 15, 55, 0.07);
  border: 1px solid rgba(240, 97, 169, 0.06);
  margin-bottom: 44px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.chloe-blog-featured:hover { transform: translateY(-4px); box-shadow: 0 28px 60px rgba(90, 15, 55, 0.12); }
.chloe-blog-featured-media { position: relative; min-height: 260px; background: #FDEEF5; }
.chloe-blog-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.chloe-blog-featured-body { padding: 40px 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.chloe-blog-featured-title {
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  color: #0B254C;
  margin-bottom: 14px;
}
.chloe-blog-featured-excerpt { font-size: 15px; line-height: 1.65; color: #6b7280; }

/* -------------------- Post grid -------------------- */
.chloe-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.chloe-blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(90, 15, 55, 0.06);
  border: 1px solid rgba(240, 97, 169, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.chloe-blog-card:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(90, 15, 55, 0.12); }
.chloe-blog-card-media { position: relative; aspect-ratio: 16 / 10; background: #FDEEF5; }
.chloe-blog-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.chloe-blog-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.chloe-blog-card-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.32;
  color: #0B254C;
  margin-bottom: 10px;
}
.chloe-blog-card-excerpt { font-size: 14px; line-height: 1.6; color: #6b7280; }

/* -------------------- Pagination -------------------- */
.chloe-blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 52px;
}
.chloe-blog-page {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: #0B254C;
  background: #ffffff;
  border: 1px solid #EADFF0;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chloe-blog-page:hover { border-color: #F061A9; color: #F061A9; }
.chloe-blog-page.is-active {
  background: #F061A9;
  border-color: #F061A9;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(240, 97, 169, 0.3);
}

.chloe-blog-empty { text-align: center; padding: 60px 0; color: #6b7280; }

/* -------------------- Hero + floating subscribe card (native HubSpot form) -------------------- */
.chloe-blog-herowrap { position: relative; }
/* desktop only: keep the hero tall enough that the floating card can't spill
   onto the filter pills below (harmless on tablet/phone where it's static) */
@media (min-width: 1201px) {
  .chloe-blog-herowrap .chloe-blog-hero { min-height: 480px; }
}

/* desktop: the card floats over the top-right of the hero's content column.
   The layer is full-width but transparent (pointer-events pass through); only
   the card is interactive, and its right edge lines up with the hero text's
   1240px content frame. */
.chloe-blog-subscribe {
  position: absolute;
  top: 132px;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
}
.chloe-blog-subscribe-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: flex-end;
}
.chloe-blog-subscribe-card {
  pointer-events: auto;
  width: 380px;
  max-width: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 30px 32px;
  box-shadow: 0 24px 60px rgba(90, 15, 55, 0.28);
}
.chloe-blog-subscribe-card h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: #0B254C;
  margin: 0 0 8px;
}
.chloe-blog-subscribe-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #6b7280;
  margin: 0 0 18px;
}
/* native form styled brand-wide in base.hubl.html — left-align inside the card */
.chloe-blog-subscribe-card .hs-form,
.chloe-blog-subscribe-card form.hs-form { text-align: left; }

/* below 1200px the card drops out of the hero and stacks below it, centred on a
   soft pink band — floats over the hero ONLY where both the 720px title column
   and the 380px card fit side by side (>1200px), so the card can never sit on
   top of the title at landscape-tablet / small-laptop widths */
@media (max-width: 1200px) {
  .chloe-blog-subscribe {
    position: static;
    pointer-events: auto;
    background: linear-gradient(180deg, #FDEEF5 0%, #FCE3EF 100%);
    padding: 42px 0 46px;
  }
  .chloe-blog-subscribe-inner { justify-content: center; }
  .chloe-blog-subscribe-card {
    width: 480px;
    box-shadow: 0 18px 44px rgba(90, 15, 55, 0.12);
  }
}
@media (max-width: 767px) {
  .chloe-blog-subscribe { padding: 34px 0 38px; }
  .chloe-blog-subscribe-inner { padding: 0 20px; }
}

/* -------------------- Responsive -------------------- */
/* tablet: hero stacks, grid → 2 columns */
@media (max-width: 1024px) {
  .chloe-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
/* phone: everything single column, featured stacks image-over-text */
@media (max-width: 767px) {
  .chloe-blog-container { padding: 0 20px; }
  .chloe-blog-main { padding: 32px 0 64px; }
  .chloe-blog-featured { grid-template-columns: 1fr; }
  .chloe-blog-featured-media { min-height: 0; aspect-ratio: 16 / 10; }
  .chloe-blog-featured-body { padding: 24px 22px 26px; }
  .chloe-blog-grid { grid-template-columns: 1fr; }
  .chloe-blog-filters { gap: 10px; margin-bottom: 28px; }
  .chloe-blog-pill { font-size: 13px; padding: 8px 16px; }
}
