/* ============================================================
   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;
}
/* Grid cards: pin the meta row (author · date · Read) to the bottom of the card so
   it bottom-aligns across every card in a row regardless of title/excerpt length.
   padding-top keeps a minimum gap when a card's content fills the height. */
.chloe-blog-card-body .chloe-blog-byline { margin-top: auto; padding-top: 18px; }
.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: 40% 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 + inline subscribe pill (native HubSpot form) --------
   The subscribe is an email field + pink "Subscribe" button as one connected pill
   (like the footer). Desktop/tablet: it overlays the hero's bottom-left over the
   pink. Phone: it sits on a soft pink band right under the hero, stacked. */
.chloe-blog-herowrap { position: relative; }

/* the little "Actionable, relevant…" hero pill is replaced by the subscribe form */
.chloe-blog-hero-pill { display: none !important; }

/* mobile-only dog element (bottom of the hero stack) — hidden ≥768px */
.chloe-blog-herodog { display: none; }

/* the wrapper card is now just a positioning box — no white card look */
.chloe-blog-subscribe-card { pointer-events: auto; width: 100%; max-width: 440px; background: none; box-shadow: none; padding: 0; }

/* form → ONE connected pill: white email (rounded left) + pink Subscribe (rounded right) */
.chloe-rebrand-body .chloe-blog-subscribe .hs-form,
.chloe-rebrand-body .chloe-blog-subscribe form.hs-form {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin: 0 !important;
  width: 100%;
  text-align: left;
}
.chloe-rebrand-body .chloe-blog-subscribe form.hs-form label { display: none !important; }
.chloe-rebrand-body .chloe-blog-subscribe form.hs-form > fieldset {
  flex: 1 1 auto !important; width: auto !important; max-width: none !important;
  min-width: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; display: block !important;
}
.chloe-rebrand-body .chloe-blog-subscribe .hs-form-field { width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important; }
.chloe-rebrand-body .chloe-blog-subscribe .hs-input {
  box-sizing: border-box !important; width: 100% !important; min-width: 0 !important; height: 52px !important;
  background: #ffffff !important; border: none !important; border-radius: 12px 0 0 12px !important;
  padding: 0 18px !important; color: #333333 !important; box-shadow: none !important; margin: 0 !important;
}
.chloe-rebrand-body .chloe-blog-subscribe .hs_submit { flex: 0 0 auto !important; display: flex !important; align-items: center !important; margin: 0 !important; padding: 0 !important; }
.chloe-rebrand-body .chloe-blog-subscribe .hs_submit .actions { margin: 0 !important; padding: 0 !important; }
.chloe-rebrand-body .chloe-blog-subscribe input[type="submit"].hs-button,
.chloe-rebrand-body .chloe-blog-subscribe .hs-button.primary {
  box-sizing: border-box !important; width: auto !important; height: 52px !important; min-height: 52px !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  padding: 0 30px !important; color: #ffffff !important; background: #F061A9 !important; border: none !important;
  border-radius: 0 12px 12px 0 !important; box-shadow: none !important; font-weight: 700 !important;
  white-space: nowrap !important; line-height: 1 !important; margin: 0 !important; transition: background-color .18s ease !important;
}
.chloe-rebrand-body .chloe-blog-subscribe input[type="submit"].hs-button:hover,
.chloe-rebrand-body .chloe-blog-subscribe .hs-button.primary:hover { background: #E24E97 !important; }

/* Validation errors (same fix as the footer form): on empty/invalid submit
   HubSpot injects an error "rollup" that detaches the pill + per-field error
   <li>s whose text the label-hide hid, leaving orphan bullets. Remove the rollup
   and take the field error OUT OF FLOW (no bullets) as clean text below the pill. */
.chloe-blog-subscribe-card { position: relative; }
.chloe-rebrand-body .chloe-blog-subscribe form.hs-form .hs_error_rollup { display: none !important; }
.chloe-rebrand-body .chloe-blog-subscribe form.hs-form .hs-error-msgs {
  list-style: none !important;
  position: absolute !important;
  top: calc(100% + 5px);
  left: 2px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
.chloe-rebrand-body .chloe-blog-subscribe form.hs-form .hs-error-msgs li { margin: 0 !important; padding: 0 !important; }
.chloe-rebrand-body .chloe-blog-subscribe form.hs-form .hs-error-msgs label,
.chloe-rebrand-body .chloe-blog-subscribe form.hs-form .hs-error-msg {
  display: block !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

/* Desktop + tablet: overlay the pill on the hero's bottom-left, over the pink.
   The hero reserves the form's zone via padding-bottom, so the copy always flows
   ABOVE the form no matter how many lines the heading/subtitle wrap to (fixes the
   form landing on the subtitle when the heading wraps to two lines). */
@media (min-width: 768px) {
  .chloe-blog-herowrap .chloe-blog-hero { min-height: 480px; padding-bottom: 160px; }
  .chloe-blog-subscribe { position: absolute; left: 0; right: 0; bottom: 72px; z-index: 5; pointer-events: none; }
  .chloe-blog-subscribe-inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; display: flex; justify-content: flex-start; }
}
@media (min-width: 1025px) {
  .chloe-blog-herowrap .chloe-blog-hero { min-height: 500px; }
  .chloe-blog-subscribe { bottom: 80px; }
}

/* Phone: NATURAL FLOW STACK (no overlay) — heading → intro → email → Subscribe →
   dog, all on one continuous pink scene. The herowrap carries the pink; the hero,
   subscribe and dog flow down it in order. This fixes the overlap and, by dropping
   the hero's background media on phones, the slow load. */
@media (max-width: 767px) {
  .chloe-blog-herowrap {
    background: linear-gradient(180deg, #F79AC6 0%, #EC6EA8 38%, #DE5595 72%, #D24E8C 100%);
  }
  .chloe-blog-subscribe {
    position: static;
    pointer-events: auto;
    background: none;
    padding: 4px 0 0;
  }
  .chloe-blog-subscribe-inner { padding: 0 20px; }
  .chloe-blog-subscribe-card { max-width: 100%; }
  /* stack the pill: email full width, Subscribe full width beneath */
  .chloe-rebrand-body .chloe-blog-subscribe .hs-form,
  .chloe-rebrand-body .chloe-blog-subscribe form.hs-form { flex-direction: column !important; gap: 10px !important; }
  .chloe-rebrand-body .chloe-blog-subscribe .hs-input { border-radius: 12px !important; }
  .chloe-rebrand-body .chloe-blog-subscribe input[type="submit"].hs-button,
  .chloe-rebrand-body .chloe-blog-subscribe .hs-button.primary { width: 100% !important; display: block !important; border-radius: 12px !important; }
  /* the dog closes the stack at the bottom */
  .chloe-blog-herodog { display: block; padding: 22px 20px 6px; }
  .chloe-blog-herodog img { display: block; width: 100%; max-width: 300px; margin: 0 auto; height: auto; }
}

/* -------------------- 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: 22px 22px 24px; }
  /* on phones the featured reads like a normal card (uniform sizing) */
  .chloe-blog-featured-title { font-size: 19px; line-height: 1.32; margin-bottom: 10px; }
  .chloe-blog-featured-excerpt { font-size: 14px; }
  .chloe-blog-grid { grid-template-columns: 1fr; }
  .chloe-blog-filters { gap: 10px; margin-bottom: 28px; }
  .chloe-blog-pill { font-size: 13px; padding: 8px 16px; }
}
