body.blog-page {
  background: var(--soft-bg);
  color: var(--text);
}

.blog-shell {
  padding-bottom: 5rem;
}

.blog-container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.blog-hero {
  padding: 2rem 0 1.75rem;
}

.blog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.blog-breadcrumbs a:hover {
  color: var(--navy);
}

.blog-hero-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.5rem;
  align-items: stretch;
  padding: 1.5rem;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow);
}

.blog-hero-copy {
  padding: 0.4rem 0;
}

.blog-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.blog-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(151, 116, 253, 0.10);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 800;
}

.blog-chip i {
  color: var(--pink);
}

.blog-hero-card h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.blog-intro {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
  max-width: 62ch;
}

.blog-author-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.blog-author,
.blog-published {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.blog-author small,
.blog-published small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.blog-author strong,
.blog-published strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.blog-author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--violet));
  flex-shrink: 0;
}

.blog-hero-media {
  position: relative;
}

.blog-hero-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 24px;
}

.blog-main {
  padding-top: 1.5rem;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 1.5rem;
  align-items: start;
}

.blog-article {
  padding: 2rem;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow);
}

.blog-article h2 {
  margin: 2.2rem 0 0.9rem;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.14;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.blog-article p,
.blog-article li {
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.9;
}

.blog-article p {
  margin: 0 0 1rem;
}

.blog-article ul {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

.blog-article li + li {
  margin-top: 0.45rem;
}

.blog-article a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.blog-article a:hover {
  color: var(--pink);
  text-decoration-color: var(--pink);
}

.blog-callout {
  margin: 1.5rem 0;
  padding: 1.2rem 1.25rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(253, 70, 193, 0.07), rgba(151, 116, 253, 0.08));
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.blog-callout p {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}

.blog-sidebar {
  position: sticky;
  top: 100px;
}

.blog-sidebar-card {
  padding: 1.35rem;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow);
}

.blog-sidebar-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.blog-toc {
  display: grid;
  gap: 0.65rem;
}

.blog-toc a {
  display: block;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: var(--soft-bg-2);
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
}

.blog-toc a:hover {
  color: var(--navy);
  background: rgba(151, 116, 253, 0.10);
}

.blog-faq-panel {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 24px;
  background: var(--soft-bg-2);
  border: 1px solid var(--line);
}

.blog-faq-panel h2 {
  margin-top: 0;
}

.blog-faq-item + .blog-faq-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.blog-faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.blog-faq-item p {
  margin: 0;
  color: var(--muted);
}

.blog-cta-panel {
  margin-top: 2rem;
  padding: 1.6rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(253, 70, 193, 0.08), rgba(151, 116, 253, 0.08), rgba(255, 199, 45, 0.10));
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.blog-cta-panel h2 {
  margin-top: 0;
}

.blog-cta-panel p {
  color: var(--muted);
}

.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

@media (max-width: 1080px) {
  .blog-hero-card,
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 700px) {
  .blog-hero-card,
  .blog-article,
  .blog-faq-panel,
  .blog-cta-panel,
  .blog-sidebar-card {
    padding: 1.25rem;
  }

  .blog-hero-image {
    min-height: 260px;
  }

  .blog-author-row {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-author,
  .blog-published {
    border-radius: 18px;
  }

  .blog-cta-actions {
    width: 100%;
  }

  .blog-cta-actions .btn {
    width: 100%;
  }
}

.blog-cta-actions .btn {
  text-decoration: none;
}

.blog-cta-actions .btn-primary {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

.blog-cta-actions .btn-primary:hover {
  background: #e638ae;
  color: var(--white);
  border-color: #e638ae;
}

.blog-cta-actions .btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.blog-cta-actions .btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}


/* =========================================================
   BLOG INDEX PAGE
   Add under existing blog.css
   ========================================================= */

.blog-index-page {
  background: var(--soft-bg);
}

.blog-index-shell {
  padding-bottom: 5rem;
}

.blog-index-hero {
  padding: 1.75rem 0 1.5rem;
}

.blog-index-hero-card {
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem 4rem;
  border-radius: 34px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='rgba(7,7,105,0.05)' stroke-width='2'%3E%3Ccircle cx='40' cy='38' r='16'/%3E%3Cpath d='M112 24h34M129 7v34'/%3E%3Crect x='18' y='110' width='30' height='20' rx='2'/%3E%3Cpath d='M100 104l10-18 10 18M100 104h20'/%3E%3Cpath d='M142 118c0-10 8-18 18-18'/%3E%3Cpath d='M142 118c0 10 8 18 18 18'/%3E%3Cpath d='M70 138h24M82 126v24'/%3E%3C/g%3E%3C/svg%3E") center/180px 180px repeat,
    linear-gradient(180deg, #fff4f8 0%, #fff7fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow);
}

.blog-index-hero-card::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -18px;
  height: 230px;
}

.blog-index-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.blog-index-hero-copy .brand-badge {
  margin-bottom: 1rem;
}

.blog-index-hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5.2vw, 4.85rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: var(--navy);
  max-width: 980px;
  margin-inline: auto;
}

.blog-index-hero-copy p {
  margin: 0 auto;
  max-width: 820px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.blog-hero-doodle {
  position: absolute;
  z-index: 1;
  color: rgba(20, 20, 20, 0.9);
  line-height: 1;
  pointer-events: none;
}

.blog-hero-doodle i {
  display: block;
  font-size: 3rem;
}



@media (max-width: 900px) {
  .blog-index-hero-card {
    padding: 3rem 1.25rem 8rem;
  }

}

@media (max-width: 700px) {
  .blog-index-hero-card {
    padding: 2.4rem 1rem 6.75rem;
    border-radius: 24px;
  }

  .blog-index-hero-copy h1 {
    font-size: clamp(2rem, 8.5vw, 3rem);
  }

  .blog-index-hero-copy p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

}

.blog-index-section {
  padding-top: 2.25rem;
}

.blog-index-toolbar {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.blog-index-search-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy);
}

.blog-index-search-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 62px;
  padding: 0 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.blog-index-search-box i {
  color: var(--pink);
  font-size: 1rem;
  flex-shrink: 0;
}

.blog-index-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.blog-index-search-box input::placeholder {
  color: var(--muted);
}

.blog-index-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.blog-filter {
  min-height: 54px;
  padding: 0 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
}

.blog-filter:hover {
  border-color: rgba(150, 116, 253, 0.35);
  color: var(--navy);
  background: rgba(150, 116, 253, 0.06);
}

.blog-filter.is-active {
  background: linear-gradient(135deg, var(--violet), #5f4df1);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(95, 77, 241, 0.18);
}

.blog-index-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.blog-index-results-head h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.blog-results-count {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.blog-listing-card {
  min-height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(15, 18, 40, 0.10);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.blog-card-link:hover,
.blog-card-link:focus,
.blog-card-link:active {
  text-decoration: none;
  color: inherit;
}

.blog-listing-image-wrap {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-listing-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-listing-card:hover .blog-listing-image-wrap img {
  transform: scale(1.03);
}

.blog-listing-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem;
}

.blog-listing-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.blog-listing-meta .blog-badge {
  margin-bottom: 0;
}

.blog-listing-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.65rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

.blog-listing-card:hover h3 {
  color: var(--navy);
}

.blog-listing-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.blog-listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  margin-top: 1.25rem;
  font-size: 0.94rem;
  color: var(--muted);
}

.blog-listing-readtime {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-weight: 700;
}

.blog-listing-readtime i {
  color: var(--pink);
}

.blog-card-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: rgba(255, 199, 45, 0.18);
  color: #8d6510;
  font-size: 0.84rem;
  font-weight: 800;
}

.blog-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.blog-page-arrow {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: var(--shadow);
}

.blog-page-arrow:hover:not(:disabled) {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.blog-page-arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.blog-pagination-info {
  min-width: 120px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .blog-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .blog-index-hero-card {
    padding: 2.25rem 1.15rem 6.5rem;
    border-radius: 24px;
  }

  .blog-index-toolbar,
  .blog-index-results-head {
    gap: 0.9rem;
  }

  .blog-index-results-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-index-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .blog-filter {
    width: 100%;
    min-height: 50px;
    padding: 0 0.9rem;
    font-size: 0.92rem;
  }

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

  .blog-listing-card h3 {
    font-size: 1.45rem;
  }

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

  .blog-pagination-wrap {
    gap: 0.8rem;
  }
}