/* Shared shell for related SEO/GEO page clusters. Page bodies keep their page-type templates. */
body.seo-cluster-page {
  background: #07090f;
  color: #f7f8fc;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  margin: 0;
  min-height: 100%;
}

.seo-cluster-page .seo-cluster-header,
.seo-cluster-page .seo-cluster-footer {
  background: rgb(7 9 15 / 94%);
  border-color: rgb(255 255 255 / 12%);
  border-style: solid;
  color: #aab2c5;
}

.seo-cluster-page .seo-cluster-header {
  border-width: 0 0 1px;
  position: relative;
  z-index: 20;
}

.seo-cluster-page .seo-cluster-footer {
  border-width: 1px 0 0;
  margin-top: 64px;
}

.seo-cluster-page .seo-cluster-nav,
.seo-cluster-page .seo-cluster-footer-inner {
  margin-inline: auto;
  max-width: 1180px;
  padding-inline: 24px;
}

.seo-cluster-page .seo-cluster-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 72px;
}

.seo-cluster-page .seo-cluster-brand {
  color: #f7f8fc;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.seo-cluster-page .seo-cluster-links,
.seo-cluster-page .seo-cluster-footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.seo-cluster-page .seo-cluster-links a,
.seo-cluster-page .seo-cluster-footer-links a {
  color: inherit;
  text-decoration: none;
}

.seo-cluster-page .seo-cluster-links a:hover,
.seo-cluster-page .seo-cluster-footer-links a:hover {
  color: #f7f8fc;
}

.seo-cluster-page .seo-cluster-cta {
  align-items: center;
  background: #8b7cff;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
}

.seo-cluster-page .seo-cluster-footer-inner {
  padding-block: 40px;
}

.seo-cluster-page .seo-cluster-footer-row {
  align-items: start;
  display: flex;
  gap: 32px;
  justify-content: space-between;
}

.seo-cluster-page .seo-cluster-footer-row strong {
  color: #f7f8fc;
}

.seo-cluster-page .seo-cluster-footer-row p {
  margin: 8px 0 0;
  max-width: 660px;
}

.seo-cluster-page .seo-cluster-footer-legal {
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: 0.875rem;
  margin: 24px 0 0;
  padding-top: 20px;
}

/* The shared blog template gives promo cards a fixed 350px width while its
   desktop sidebar is 300px. Keep cluster pages inside the viewport without
   changing the legacy template used by unrelated SEO pages. */
.seo-cluster-page .right-sidebar,
.seo-cluster-page .ad-card,
.seo-cluster-page .ad-cta {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.seo-cluster-page .ad-card {
  width: 100%;
}

.seo-cluster-page .right-sidebar .ad-card {
  padding: 20px;
  text-align: left;
  background:
    radial-gradient(circle at 100% 0, rgba(135, 92, 246, 0.24), transparent 48%),
    linear-gradient(145deg, #17131f 0%, #241a32 100%);
  border: 1px solid rgba(188, 159, 255, 0.24);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(10, 6, 18, 0.22);
}

.seo-cluster-page .right-sidebar .ad-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.35;
  text-align: left;
}

.seo-cluster-page .right-sidebar .ad-card p {
  margin: 0;
  color: #d9d1e7;
  font-size: 0.875rem;
  line-height: 1.55;
  text-align: left;
}

.seo-cluster-page .right-sidebar .ad-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  padding: 12px 16px;
  color: #17111f;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  background: linear-gradient(135deg, #d6c3ff, #a87bff);
  border-radius: 12px;
}

.seo-cluster-page .right-sidebar .ad-cta:hover {
  background: linear-gradient(135deg, #e0d2ff, #b890ff);
}

.seo-cluster-page .engagement-section-container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.seo-cluster-page .related-posts,
.seo-cluster-page .posts-grid {
  width: 100%;
  min-width: 0;
}

.seo-cluster-page .posts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.seo-cluster-page .post-card {
  width: 100%;
  min-width: 0;
  margin-left: 0;
}

@media (max-width: 960px) {
  .seo-cluster-page .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .seo-cluster-page .posts-grid {
    grid-template-columns: 1fr;
  }
}

.seo-cluster-page .content-wrapper {
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr) minmax(0, 300px);
  min-width: 0;
}

.seo-cluster-page .content-wrapper > section {
  min-width: 0;
}

.seo-cluster-page .markdown-body,
.seo-cluster-page .markdown-body * {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.seo-cluster-page .cta-banner-btn {
  display: table;
  margin-inline: auto;
  max-width: 100%;
  text-align: center;
}

.seo-cluster-page .author-avatar {
  align-items: center;
  background: linear-gradient(135deg, #8b7cff, #4ed7ff);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 24px;
  font-size: 0.75rem;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}

.seo-cluster-page .project-topic-index {
  display: grid;
  gap: 10px 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.seo-cluster-page .project-topic-index li {
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-wrap: anywhere;
  padding: 10px 0;
}

.seo-cluster-page .project-topic-index a,
.seo-cluster-page .project-topic-index strong {
  color: #f7f8fc;
  font-weight: 700;
}

.seo-cluster-page .project-topic-index span {
  color: #aab2c5;
  font-size: 0.875rem;
  line-height: 1.45;
}

@media (min-width: 761px) and (max-width: 1024px) {
  .seo-cluster-page .content-wrapper {
    grid-template-columns: minmax(0, 1fr) minmax(0, 250px);
  }

  .seo-cluster-page .sidebar {
    display: none;
  }
}

@media (max-width: 760px) {
  .seo-cluster-page .breadcrumb {
    overflow-x: hidden;
  }

  .seo-cluster-page .breadcrumb span:last-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .seo-cluster-page .seo-cluster-nav,
  .seo-cluster-page .seo-cluster-footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .seo-cluster-page .seo-cluster-nav {
    gap: 14px;
    padding-block: 18px;
  }

  .seo-cluster-page .seo-cluster-links {
    gap: 12px 16px;
  }

  .seo-cluster-page .content-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .seo-cluster-page .project-topic-index {
    grid-template-columns: minmax(0, 1fr);
  }
}
