/* ============================================================
   BLOG PAGE — mirrors tmind-web /blog (blog branch) exactly
   Pure-white background, Poppins headings, Inter body.
   ============================================================ */

/* ---- tokens (scoped so they don't bleed) ----------------- */
.blog-page {
  --b-ink:     #1B2B27;
  --b-dek:     #54625C;
  --b-meta:    #8A968F;
  --b-accent:  #2E6B4E;
  --b-accentd: #234F3A;
  --b-accentt: #EAF1EE;
  --b-line:    #E2E0D8;
  --b-surface2:#EFEDE6;
  --b-card-shadow: 0 1px 2px rgba(27,30,26,.04), 0 12px 30px -12px rgba(27,30,26,.12);
  --b-lift-shadow: 0 2px 4px rgba(27,30,26,.05), 0 30px 60px -20px rgba(27,30,26,.22);
  --b-ease: cubic-bezier(.22, 1, .36, 1);

  background: #fff;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.blog-page main {
  padding-top: 72px;
  padding-bottom: 100px;
}

/* ---- container ------------------------------------------- */
.blog-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}

/* ---- hero ------------------------------------------------ */
.blog-hero {
  max-width: 760px;
}

.blog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: var(--b-accentt);
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--b-accentd);
  font-family: 'Inter', sans-serif;
}

.blog-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(30px, 5.2vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--b-ink);
  margin: 20px 0 0;
  text-wrap: balance;
}

.blog-hero__desc {
  font-size: 17px;
  line-height: 1.6;
  color: #5C6A64;
  margin: 14px 0 0;
  max-width: 640px;
  text-wrap: pretty;
}

/* ---- featured post card ---------------------------------- */
.blog-featured {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 24px;
  border: 1px solid var(--b-line);
  background: #fff;
  box-shadow: var(--b-card-shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.5s var(--b-ease);
}

.blog-featured:hover {
  box-shadow: var(--b-lift-shadow);
}

/* Desktop: content left, image right */
@media (min-width: 1024px) {
  .blog-featured {
    grid-template-columns: 1.02fr 1fr;
  }
}

/* ---- featured: content side ----------------------------- */
.blog-featured__body {
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

@media (min-width: 640px) {
  .blog-featured__body {
    padding: 40px;
  }
}

@media (min-width: 1024px) {
  .blog-featured__body {
    order: 1;
  }
}

.blog-featured__meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--b-meta);
}

.blog-pill {
  display: inline-block;
  border-radius: 9999px;
  background: var(--b-accentt);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--b-accentd);
}

.blog-pill--md {
  font-size: 12px;
}

.blog-featured__featured-label {
  font-weight: 600;
  color: var(--b-accentd);
}

.blog-featured__read-time {
  font-weight: 500;
}

.blog-featured__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--b-ink);
  margin: 16px 0 0;
  text-wrap: balance;
  transition: color 0.3s ease;
}

.blog-featured:hover .blog-featured__title {
  color: var(--b-accentd);
}

.blog-featured__excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--b-dek);
  margin: 14px 0 0;
  max-width: 52ch;
  text-wrap: pretty;
}

.blog-featured__author {
  margin-top: 28px;
}

.blog-author-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-author-chip__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.blog-author-chip__name {
  font-size: 13px;
  color: var(--b-ink);
  font-weight: 600;
}

.blog-featured__date {
  margin-top: 6px;
  padding-left: 42px;
  font-size: 12.5px;
  color: var(--b-meta);
}

/* ---- featured: image side ------------------------------- */
.blog-featured__cover {
  order: 1;
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--b-surface2);
}

@media (min-width: 1024px) {
  .blog-featured__cover {
    order: 2;
    aspect-ratio: auto;
    min-height: 360px;
  }
}

.blog-featured__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--b-ease);
}

.blog-featured:hover .blog-featured__cover img {
  transform: scale(1.045);
}

.blog-featured__cover-credit {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0,0,0,.35);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

/* ---- CTA (borderless aurora) ----------------------------- */
.blog-cta {
  position: relative;
  margin-top: 80px;
  padding: 96px 32px;
  text-align: center;
}

@media (min-width: 640px) {
  .blog-cta {
    padding: 96px 56px;
  }
}

.blog-cta__aurora {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130%;
  height: 220%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(34% 38% at 53% 50%, rgba(6,191,132,.22), transparent 70%),
    radial-gradient(26% 30% at 36% 60%, rgba(254,228,120,.40), transparent 68%),
    radial-gradient(24% 28% at 64% 42%, rgba(1,161,150,.14), transparent 66%),
    radial-gradient(18% 22% at 44% 38%, rgba(180,225,200,.30), transparent 66%);
}

.blog-cta__inner {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}

.blog-cta__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(27px, 3.8vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #1c4f44;
  margin: 0;
  text-wrap: balance;
}

.blog-cta__desc {
  font-size: 17px;
  line-height: 1.55;
  color: var(--b-dek);
  margin: 16px auto 0;
  max-width: 42ch;
  text-wrap: pretty;
}

/* Official TMind "Book a Demo" gradient button */
.blog-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  height: 52px;
  min-width: 149px;
  padding: 0 28px;
  border-radius: 137px;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(94.07deg, #f99522 9.45%, #fee478 135.58%);
  box-shadow: inset 0 -4px 10px rgba(255, 214, 93, 0.7);
  transition: transform 0.2s ease;
}

.blog-cta__btn:hover {
  transform: scale(1.02);
}

/* ---- filter bar (secondary posts) ----------------------- */
.blog-filter-bar {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--b-line);
}

.blog-filter-btn {
  position: relative;
  border-radius: 9999px;
  border: 1px solid var(--b-line);
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #6A6E66;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.blog-filter-btn:hover {
  border-color: #cdd3ca;
  color: var(--b-ink);
}

.blog-filter-btn.active {
  background: var(--b-accent);
  border-color: var(--b-accent);
  color: #fff;
}

/* ---- secondary post grid --------------------------------- */
.blog-grid {
  margin-top: 40px;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 28px;
}

@media (min-width: 600px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--b-line);
  background: #fff;
  box-shadow: var(--b-card-shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.5s var(--b-ease), box-shadow 0.5s var(--b-ease);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b-lift-shadow);
}

.blog-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--b-surface2);
}

.blog-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--b-ease);
}

.blog-card:hover .blog-card__cover img {
  transform: scale(1.045);
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.blog-card__meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--b-meta);
}

.blog-card__read-time {
  font-weight: 500;
}

.blog-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--b-ink);
  margin: 14px 0 0;
  text-wrap: balance;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card__title {
  color: var(--b-accentd);
}

.blog-card__excerpt {
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--b-dek);
  margin: 10px 0 0;
  text-wrap: pretty;
}

.blog-card__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--b-line);
  margin-top: 24px;
}

.blog-no-results {
  padding: 64px 0;
  text-align: center;
  font-size: 15px;
  color: var(--b-meta);
}

/* ---- responsive (index) --------------------------------- */
@media (max-width: 480px) {
  .blog-wrap {
    padding: 0 20px;
  }

  .blog-featured__body {
    padding: 24px 20px;
  }

  .blog-page main {
    padding-top: 96px;
    padding-bottom: 72px;
  }
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

/* Reading progress bar */
.blog-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  background: transparent;
  pointer-events: none;
}
.blog-progress__bar {
  height: 100%;
  background: #2E6B4E;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}

/* Article main */
.blog-article-page main {
  padding-top: 64px;
  padding-bottom: 110px;
}

/* Article container */
.blog-article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* Back link */
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #6A6E66;
  text-decoration: none;
  transition: color 0.3s ease;
}
.blog-back:hover {
  color: #1B2B27;
}
.blog-back__arrow {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}
.blog-back:hover .blog-back__arrow {
  transform: translateX(-4px);
}

/* Article header */
.blog-article__header {
  max-width: 800px;
  margin: 0 auto;
}

.blog-article__meta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #8A968F;
}

.blog-article__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(36px, 5.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #1B2B27;
  margin: 20px 0 0;
  text-wrap: balance;
}

.blog-article__excerpt {
  font-size: 21px;
  line-height: 1.55;
  color: #54625C;
  margin: 16px 0 0;
  text-wrap: pretty;
}

.blog-article__author-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 36px;
  border-bottom: 1px solid #E2E0D8;
}

.blog-article__author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.blog-article__author-info {
  font-size: 15px;
  line-height: 1.45;
  color: #8A968F;
}

.blog-article__author-name {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: #1B2B27;
}

/* Article cover */
.blog-article__cover {
  position: relative;
  max-width: 800px;
  margin: 48px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(27,30,26,.05), 0 30px 60px -20px rgba(27,30,26,.22);
}

.blog-article__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article__cover-credit {
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,.35);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

/* Prose body */
.blog-prose {
  max-width: 800px;
  margin: 56px auto 0;
  font-size: 20px;
  line-height: 1.72;
  color: #37433E;
}

.blog-prose p {
  margin: 0 0 24px;
  text-wrap: pretty;
}

.blog-prose a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-prose img {
  max-width: 480px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 32px auto;
}

.blog-prose h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #1B2B27;
  margin: 44px 0 16px;
  text-wrap: balance;
}

.blog-prose figure {
  margin: 40px 0;
}

.blog-prose blockquote {
  margin: 0;
  padding: 0;
  border: none;
}

.blog-prose blockquote p {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #234F3A;
  margin: 0;
  text-wrap: balance;
}
.blog-prose blockquote p::before { content: "\201C"; }
.blog-prose blockquote p::after  { content: "\201D"; }

.blog-prose figcaption {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #8A968F;
}
.blog-prose figcaption::before { content: "— "; }

.blog-prose ul {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-prose ul li {
  position: relative;
  padding-left: 28px;
  text-wrap: pretty;
}

.blog-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2E6B4E;
}

/* FAQ */
.blog-faq {
  max-width: 800px;
  margin: 56px auto 0;
}

.blog-faq__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #1B2B27;
  margin: 0 0 24px;
}

.blog-faq__list {
  border-top: 1px solid #E2E0D8;
  border-bottom: 1px solid #E2E0D8;
}

.blog-faq__item {
  padding: 20px 0;
  border-bottom: 1px solid #E2E0D8;
}

.blog-faq__item:last-child {
  border-bottom: none;
}

.blog-faq__q {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: #1B2B27;
  margin: 0 0 8px;
}

.blog-faq__a {
  font-size: 18px;
  line-height: 1.6;
  color: #37433E;
  margin: 0;
  text-wrap: pretty;
}

/* Sign-off decoration */
.blog-signoff {
  max-width: 800px;
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.blog-signoff__line {
  width: 40px;
  height: 1px;
  background: #2E6B4E;
}

.blog-signoff__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2E6B4E;
  margin-left: 4px;
}

/* Author card */
.blog-author-card {
  max-width: 800px;
  margin: 44px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 18px;
  border: 1px solid #E2E0D8;
  background: #fff;
  padding: 24px 28px;
  box-shadow: 0 1px 2px rgba(27,30,26,.04), 0 12px 30px -12px rgba(27,30,26,.12);
}

.blog-author-card__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.blog-author-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.blog-author-card__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8A968F;
}

.blog-author-card__name {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: #1B2B27;
  margin-top: 2px;
}

.blog-author-card__role {
  display: block;
  font-size: 13px;
  color: #8A968F;
}

.blog-author-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid #E2E0D8;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #1B2B27;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(.22,1,.36,1);
}

.blog-author-card__link:hover {
  border-color: #1B2B27;
  transform: translateY(-2px);
}

/* Article CTA (same aurora style as index) */
.blog-article-cta {
  position: relative;
  max-width: 800px;
  margin: 80px auto 0;
  padding: 80px 32px;
  text-align: center;
}

.blog-article-cta__aurora {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130%;
  height: 220%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(34% 38% at 53% 50%, rgba(6,191,132,.22), transparent 70%),
    radial-gradient(26% 30% at 36% 60%, rgba(254,228,120,.40), transparent 68%),
    radial-gradient(24% 28% at 64% 42%, rgba(1,161,150,.14), transparent 66%),
    radial-gradient(18% 22% at 44% 38%, rgba(180,225,200,.30), transparent 66%);
}

.blog-article-cta__inner {
  position: relative;
}

.blog-article-cta__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(27px, 3.8vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #1c4f44;
  margin: 0;
  text-wrap: balance;
}

.blog-article-cta__desc {
  font-size: 17px;
  line-height: 1.55;
  color: #54625C;
  margin: 16px auto 0;
  max-width: 42ch;
  text-wrap: pretty;
}

/* Responsive article */
@media (max-width: 480px) {
  .blog-article {
    padding: 0 20px;
  }

  .blog-article__cover {
    border-radius: 16px;
  }

  .blog-author-card {
    padding: 20px;
  }

  .blog-article-page main {
    padding-top: 88px;
    padding-bottom: 72px;
  }
}
