/* ===================================================================
   TOP HYPNOTHERAPIST IN MUMBAI — VIBHA JAIN
   blog.css — "The Journal" editorial layouts
   Builds on main.css tokens. Distinct from home.css .journal-card.
   =================================================================== */

/* ---------- shared editorial atoms ---------- */
.cat-tag {
  display: inline-flex; align-items: center;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-ink); padding: 0.3rem 0; position: relative;
}
.cat-tag::before { content: ""; width: 16px; height: 1px; background: var(--gold); margin-right: 0.6rem; opacity: 0.7; }

/* author byline (uses vibha-avatar in a circle) */
.byline { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.6rem; }
.byline-avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); }
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-text { display: flex; flex-direction: column; line-height: 1.3; }
.byline-text b { font-family: var(--font-sans); font-weight: 600; font-size: 0.92rem; color: var(--forest-dp); }
.byline-meta { font-size: 0.78rem; color: var(--text-soft); letter-spacing: 0.02em; }

/* ---------- PAGE HERO ---------- */
.blog-hero { text-align: left; }
.blog-hero-title { margin-top: 1.4rem; }
.blog-hero .lead { margin-top: 1.6rem; }

/* ---------- FEATURED ARTICLE ---------- */
.featured-section { padding-top: clamp(2rem, 4vw, 3rem); }
.featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
}
.featured-media { display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.featured-media img { transition: transform 1.2s var(--ease); }
.featured-media:hover img { transform: scale(1.05); }
.featured-body { padding-block: clamp(0.5rem, 2vw, 1.5rem); }
.featured-title { margin-top: 1rem; }
.featured-title a { background-image: linear-gradient(var(--gold),var(--gold)); background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .5s var(--ease), color .4s var(--ease); }
.featured-title a:hover { background-size: 100% 1px; }
.featured-title a:hover { color: var(--gold-ink); }
.featured-excerpt { margin-top: 1.2rem; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--text-soft); }

/* ---------- CATEGORY FILTER ---------- */
.filter-section { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.filter-head { margin-bottom: 1.6rem; }
.filter-row { gap: 0.7rem; }
.filter-pill {
  padding: 0.6rem 1.25rem; border-radius: 100px; border: 1px solid var(--line);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; color: var(--ink);
  background: rgba(255,255,255,0.4);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.filter-pill:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--forest); }
.filter-pill.is-active { background: var(--forest); color: var(--ivory); border-color: var(--forest); }

/* ---------- LATEST ARTICLES — asymmetric magazine grid ---------- */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch;
  gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1.6rem, 3vw, 2.4rem);
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--ivory); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(172,139,79,0.35); }
.post-media { display: block; border-radius: 0; aspect-ratio: 16/10; }
.post-media img { transition: transform 1.2s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.06); }
.post-body { padding: clamp(1.3rem, 2.4vw, 1.8rem); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.post-body h3 { margin-top: 0.15rem; }
.post-body h3 a { transition: color .4s var(--ease); }
.post-card:hover .post-body h3 a { color: var(--gold-ink); }
.post-excerpt { font-size: 0.95rem; line-height: 1.6; }
.post-meta {
  margin-top: auto; padding-top: 0.4rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: 0.76rem; letter-spacing: 0.04em; color: var(--text-soft);
}
.post-meta span { opacity: 0.45; }

/* make the first card span wider for editorial asymmetry */
.post-grid .post-card:first-child { grid-column: span 2; flex-direction: row; align-items: stretch; }
.post-grid .post-card:first-child .post-media { flex: 1 1 50%; aspect-ratio: auto; align-self: stretch; min-height: 260px; }
.post-grid .post-card:first-child .post-body { flex: 1 1 50%; justify-content: center; min-width: 0; }

/* ---------- POPULAR TOPICS ---------- */
.topics-cloud { gap: 0.8rem; }
.topic-chip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.3rem; border-radius: 100px;
  background: var(--ivory); border: 1px solid var(--line);
  font-size: 0.9rem; font-weight: 500; color: var(--forest);
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
}
.topic-chip span {
  font-size: 0.7rem; font-weight: 700; color: var(--gold-ink);
  background: var(--paper-warm); border-radius: 100px; padding: 0.1rem 0.5rem;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.topic-chip:hover { background: var(--forest); color: var(--ivory); border-color: var(--forest); transform: translateY(-2px); }
.topic-chip:hover span { background: var(--gold); color: #fff; }

/* ---------- NEWSLETTER BAND ---------- */
.newsletter-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); padding: clamp(2.4rem, 5vw, 4.5rem);
  box-shadow: var(--shadow-lg);
}
.newsletter-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.newsletter-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; align-items: end; }
.newsletter-form .field { margin-bottom: 1.1rem; }
.newsletter-form .field label { color: rgba(241,234,220,0.7); }
.newsletter-form .field input {
  background: rgba(248,245,239,0.08); border-color: rgba(241,234,220,0.22); color: var(--ivory);
}
.newsletter-form .field input::placeholder { color: rgba(241,234,220,0.4); }
.newsletter-form .field input:focus { background: rgba(248,245,239,0.14); border-color: var(--gold-soft); box-shadow: 0 0 0 4px rgba(198,169,115,0.16); }
.newsletter-form .btn { grid-column: 1 / -1; justify-content: center; }
.nl-fineprint { grid-column: 1 / -1; font-size: 0.78rem; margin-top: 0.8rem; color: rgba(241,234,220,0.55); }

/* ---------- CLOSING CTA + RELATED ---------- */
.blog-cta-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
.related-strip {
  background: var(--ivory); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm);
}
.related-strip > h3 { margin-bottom: 1.2rem; }
.related-item { display: block; padding: 1rem 0; border-top: 1px solid var(--line); transition: padding-left .4s var(--ease); }
.related-item:first-of-type { border-top: 0; padding-top: 0.3rem; }
.related-item:hover { padding-left: 0.5rem; }
.related-item p {
  margin-top: 0.4rem; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.3;
  color: var(--forest-dp); transition: color .4s var(--ease);
}
.related-item:hover p { color: var(--gold-ink); }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px) {
  .featured { grid-template-columns: 1fr; }
  .featured-media { aspect-ratio: 16/10; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid .post-card:first-child { grid-column: span 2; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .blog-cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .blog-hero { text-align: left; }
  .post-grid { grid-template-columns: 1fr; }
  .post-grid .post-card:first-child { grid-column: span 1; flex-direction: column; }
  .post-grid .post-card:first-child .post-media { aspect-ratio: 16/10; min-height: 0; }
  .featured-body { padding-block: 0; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form .field { margin-bottom: 1rem; }
}


/* ---------- QA FIXES ---------- */
/* .featured-media IS the frame (an <a>), so give it a real ratio at every size */
.featured-media { aspect-ratio: 16/10; }
@media (max-width: 980px){
  .featured { gap: 1.6rem; }
  .post-grid .post-card:first-child .post-media { min-height: 220px; }
}
@media (max-width: 680px){
  .post-grid .post-card:first-child .post-media { min-height: 0; }
}
/* the topic-count badge sits on paper-warm inside the chip */
.topic-chip:hover span { background: var(--gold-dp); color: #fff; }
