@charset "UTF-8";

/* =================================================
   BLOG — ChatVibe
   Rewritten 2026-03-31
   ================================================= */

/* ---- Override: the global `header` rule in style.css
        sets height:70px + color:white on ALL <header> tags.
        We need to undo that for the article header. ---- */
header.blog-post-header {
  height: auto !important;
  color: #171a2b !important;
  padding-top: 0 !important;
  position: static !important;
  z-index: auto !important;
}

/* =================================================
   1. PAGE SHELL
   ================================================= */
.blog-page-shell {
  padding-top: 110px;
  position: relative;
  z-index: 2;
}

/* =================================================
   2. HERO  (listing page)
   ================================================= */
.blog-hero {
  padding: 48px 0 36px;
  background:
    radial-gradient(circle at 10% 20%, rgba(108, 66, 192, 0.10), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(12, 164, 165, 0.06), transparent 40%),
    linear-gradient(180deg, #f8f7fc 0%, #f2f4f8 100%);
}

.blog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(108, 66, 192, 0.10);
  color: #6c42c0;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.blog-hero .container {
  text-align: center;
}

.blog-hero h1 {
  max-width: 720px;
  margin: 1rem auto 0.75rem;
  color: #171a2b;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.10;
}

.blog-hero .blog-hero-sub {
  max-width: 640px;
  margin: 0 auto;
  color: #495162;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* =================================================
   3. TOOLBAR  (search + filters)
   ================================================= */
.blog-toolbar {
  padding: 32px 0 0;
}

.blog-toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.blog-toolbar-copy h2 {
  margin: 0 0 0.35rem;
  color: #171a2b;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.blog-toolbar-copy p {
  margin: 0;
  color: #5d667a;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* search */
.blog-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: min(100%, 420px);
}

.blog-search input[type="search"] {
  flex: 1;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(23, 26, 43, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #171a2b;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.blog-search input[type="search"]:focus {
  outline: none;
  border-color: #6c42c0;
  box-shadow: 0 0 0 3px rgba(108, 66, 192, 0.10);
}

.blog-search button {
  min-height: 48px;
  padding: 0 1.4rem;
  border: none;
  border-radius: 999px;
  background: #6c42c0;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.blog-search button:hover {
  background: #5a359e;
}

/* filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.blog-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid rgba(12, 164, 165, 0.22);
  background: #fff;
  color: #0c7d7e;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.blog-chip:hover {
  border-color: #0ca4a5;
  background: rgba(12, 164, 165, 0.12);
  color: #085f60;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(12, 164, 165, 0.15);
}

.blog-chip.is-active {
  border-color: #0ca4a5;
  background: #0ca4a5;
  color: #fff;
}

.blog-results-count {
  margin-bottom: 1.5rem;
  color: #6a7388;
  font-size: 0.9rem;
}

.blog-results-count a {
  color: #6c42c0;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.75rem;
}

/* =================================================
   4. CARDS  (shared)
   ================================================= */
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(23, 26, 43, 0.06);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(19, 25, 40, 0.06);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(19, 25, 40, 0.10);
}

.blog-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f0edf5;
}

.blog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.06);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.5rem 0;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #6a7388;
  font-size: 0.85rem;
}

.blog-card-meta .blog-chip {
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
}

.blog-card-title {
  margin: 0 0 0.6rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.35;
  color: #171a2b;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #6c42c0;
}

.blog-card-excerpt {
  margin: 0;
  color: #495162;
  font-size: 0.95rem;
  line-height: 1.7;
}

.blog-card-footer {
  padding: 1rem 1.5rem 1.5rem;
  margin-top: auto;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #6c42c0;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: gap 0.2s;
}

.blog-read-link::after {
  content: "→";
  transition: transform 0.2s;
}

.blog-read-link:hover {
  color: #5a359e;
  gap: 0.55rem;
}

.blog-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.blog-card-meta .blog-chip,
.blog-card-title a,
.blog-read-link {
  position: relative;
  z-index: 2;
}

/* =================================================
   5. CARD GRID
   ================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* =================================================
   7. PAGINATION
   ================================================= */
.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.blog-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0.4rem 0.8rem;
  border: 1.5px solid rgba(23, 26, 43, 0.10);
  border-radius: 999px;
  background: #fff;
  color: #171a2b;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-page-link:hover,
.blog-page-link.is-active {
  border-color: #6c42c0;
  color: #6c42c0;
  background: rgba(108, 66, 192, 0.05);
}

/* =================================================
   8. EMPTY STATE
   ================================================= */
.blog-empty {
  padding: 3rem 2rem;
  border: 1px dashed rgba(108, 66, 192, 0.25);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.blog-empty h2 {
  margin: 0 0 0.75rem;
  color: #171a2b;
  font-family: "Poppins", sans-serif;
}

.blog-empty p {
  margin: 0 auto 1.25rem;
  max-width: 480px;
  color: #5d667a;
  line-height: 1.7;
}

/* =================================================
   9. POST PAGE — Wrapper
   ================================================= */
.blog-post-shell {
  padding: 24px 0 80px;
}

.blog-breadcrumb {
  margin-bottom: 1.25rem;
}

.blog-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #6a7388;
}

.blog-breadcrumb a {
  color: #6c42c0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.blog-breadcrumb a:hover {
  color: #5a359e;
  text-decoration: underline;
}

.blog-post-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem;
  border: 1px solid rgba(23, 26, 43, 0.06);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(19, 25, 40, 0.06);
}

/* =================================================
   10. POST PAGE — Header
   ================================================= */
.blog-post-header {
  margin-bottom: 2rem;
  text-align: left;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: #6a7388;
}

.blog-post-meta .blog-chip {
  font-size: 0.82rem;
}

.blog-post-meta .blog-meta-sep::before {
  content: "·";
  margin: 0 0.15rem;
}

.blog-post-header .blog-post-title {
  display: block;
  margin: 0 0 0.75rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.18;
  color: #171a2b;
  letter-spacing: -0.01em;
}

.blog-post-lead {
  display: block;
  max-width: 680px;
  margin-bottom: 1.5rem;
  color: #5d667a;
  font-size: 1.1rem;
  line-height: 1.75;
}

.blog-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 16px;
  background: #f0edf5;
}

/* =================================================
   11. POST PAGE — Content body
   ================================================= */
.blog-post-content {
  max-width: 700px;
  margin: 2rem 0;
}

.blog-post-content p {
  margin-bottom: 1.3rem;
  font-size: 1.06rem;
  line-height: 1.85;
  color: #2f3647;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #171a2b;
  line-height: 1.25;
}

.blog-post-content h2 {
  margin: 2.5rem 0 0.8rem;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
}

.blog-post-content h3 {
  margin: 2rem 0 0.7rem;
  font-size: clamp(1.25rem, 1.5vw, 1.55rem);
}

.blog-post-content h4 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.15rem;
}

.blog-post-list {
  margin: 0 0 1.5rem 1rem;
  padding-left: 1rem;
  list-style: disc;
}

.blog-post-list li {
  margin-bottom: 0.55rem;
  font-size: 1.06rem;
  line-height: 1.8;
  color: #2f3647;
}

.blog-quote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #6c42c0;
  border-radius: 0 14px 14px 0;
  background: rgba(108, 66, 192, 0.06);
  color: #34264f;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.75;
}

.blog-figure {
  margin: 2rem 0;
}

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

.blog-figure figcaption {
  margin-top: 0.6rem;
  color: #6a7388;
  font-size: 0.88rem;
  text-align: center;
}

/* =================================================
   12. POST PAGE — CTA
   ================================================= */
.blog-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(108, 66, 192, 0.07) 0%, rgba(12, 164, 165, 0.06) 100%);
  border: 1px solid rgba(108, 66, 192, 0.12);
}

.blog-cta-body .blog-kicker {
  margin-bottom: 0.4rem;
}

.blog-cta-body h2 {
  margin: 0.4rem 0 0.35rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #171a2b;
}

.blog-cta-body p {
  margin: 0;
  color: #5d667a;
  font-size: 0.95rem;
  line-height: 1.65;
}

.blog-cta .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* =================================================
   13. POST PAGE — Author
   ================================================= */
.blog-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  background: #f8f9fb;
  border: 1px solid rgba(23, 26, 43, 0.06);
}

.blog-author-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #6c42c0;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.blog-author h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #171a2b;
}

.blog-author p {
  margin: 0;
  font-size: 0.9rem;
  color: #5d667a;
  line-height: 1.6;
}

/* =================================================
   14. POST PAGE — Share
   ================================================= */
.blog-share {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  background: #f8f9fb;
  border: 1px solid rgba(23, 26, 43, 0.06);
}

.blog-share h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #171a2b;
}

.blog-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-share-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 26, 43, 0.10);
  background: #fff;
  color: #171a2b;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-share-links a:hover {
  border-color: #6c42c0;
  color: #6c42c0;
}

/* =================================================
   15. POST PAGE — Prev / Next
   ================================================= */
.blog-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.blog-nav-link {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(23, 26, 43, 0.08);
  border-radius: 16px;
  background: #fff;
  color: #171a2b;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-nav-link:hover {
  border-color: #6c42c0;
  box-shadow: 0 4px 16px rgba(108, 66, 192, 0.08);
}

.blog-nav-link small {
  display: block;
  margin-bottom: 0.3rem;
  color: #6a7388;
  font-size: 0.82rem;
}

.blog-nav-link strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* =================================================
   16. POST PAGE — Related
   ================================================= */
.blog-related {
  margin-top: 2.5rem;
}

.blog-related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.blog-related-header h2 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #171a2b;
}

.blog-related-header a {
  color: #6c42c0;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.blog-related-header a:hover {
  text-decoration: underline;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* =================================================
   17. HOMEPAGE BLOG SECTION
   ================================================= */
.blog-home-section {
  padding: 80px 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(108, 66, 192, 0.08), transparent 30%),
    linear-gradient(180deg, #f8f9fb 0%, #fff 100%);
}

.blog-home-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.blog-home-copy {
  max-width: 700px;
}

.blog-home-copy h2 {
  margin-bottom: 0.6rem;
  color: #171a2b;
}

.blog-home-copy p {
  margin: 0;
  color: #5d667a;
  line-height: 1.75;
}

.blog-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-home-grid .blog-card-media {
  aspect-ratio: 16 / 10;
  background: #f0edf5;
}

.blog-home-grid .blog-card-media img {
  object-fit: contain;
}

/* =================================================
   18. RESPONSIVE
   ================================================= */
@media (max-width: 991px) {
  .blog-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search {
    width: 100%;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .blog-page-shell {
    padding-top: 90px;
  }

  .blog-hero {
    padding: 32px 0 24px;
  }

  .blog-post-card {
    padding: 1.5rem;
    border-radius: 18px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-home-grid {
    grid-template-columns: 1fr;
  }

  .blog-home-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-post-nav {
    grid-template-columns: 1fr;
  }

  .blog-related-grid {
    grid-template-columns: 1fr;
  }

  .blog-related-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .blog-cover {
    border-radius: 12px;
  }
}
