/* SEO keyword grid + rehber articles — aligned with site design system */

.seo-article-page {
  background:
    radial-gradient(90% 55% at 8% -8%, rgba(200, 255, 26, 0.14), transparent 52%),
    radial-gradient(70% 45% at 100% 0%, rgba(17, 17, 17, 0.05), transparent 48%),
    #f7f7f4;
}

.seo-main {
  padding-bottom: 0;
}

/* —— Article hero —— */

.seo-hero {
  padding: 40px 0 28px;
}

.seo-hero-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px 32px;
  align-items: center;
}

.seo-hero-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(17, 17, 17, 0.04),
    0 10px 24px rgba(17, 17, 17, 0.08),
    0 22px 40px rgba(17, 17, 17, 0.06);
}

.seo-hero-avatar img {
  width: 74%;
  height: auto;
  display: block;
  transform: translateY(5px);
}

.seo-hero-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a5c00;
}

.seo-hero-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #111;
}

.seo-hero-lead {
  margin: 0 0 22px;
  max-width: 540px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--secondary, #666);
}

.seo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* —— Body —— */

.seo-body {
  padding: 8px 0 40px;
}

.seo-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 24px;
  align-items: start;
}

.seo-prose {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 24px;
  padding: 28px 28px 32px;
  box-shadow:
    0 2px 4px rgba(17, 17, 17, 0.03),
    0 12px 28px rgba(17, 17, 17, 0.05);
}

.seo-prose h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

.seo-prose h2:first-child {
  margin-top: 0;
}

.seo-prose p,
.seo-prose li {
  color: #444;
  line-height: 1.65;
  font-size: 15px;
}

.seo-prose p {
  margin: 0 0 12px;
}

.seo-prose ul {
  padding-left: 1.2em;
  margin: 0 0 12px;
}

.seo-prose a {
  color: #111;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-prose em {
  font-style: normal;
  font-weight: 650;
  color: #111;
}

/* —— Aside —— */

.seo-aside {
  display: grid;
  gap: 16px;
}

.seo-aside-cta {
  padding: 22px 20px;
  border-radius: 24px;
  background: #111;
  color: #fff;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.18);
}

.seo-aside-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 255, 26, 0.9);
}

.seo-aside-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.seo-aside-text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.seo-aside-cta .c-btn--primary {
  width: 100%;
  justify-content: center;
}

.seo-related {
  padding: 20px 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow:
    0 2px 4px rgba(17, 17, 17, 0.03),
    0 12px 28px rgba(17, 17, 17, 0.05);
}

.seo-related-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.seo-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.seo-related-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.seo-related-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.seo-related-list strong {
  font-size: 13px;
  color: #111;
  line-height: 1.3;
}

.seo-related-list .seo-related-copy > span {
  font-size: 12px;
  line-height: 1.45;
  color: #666;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seo-related-list a:hover strong {
  color: #5a6f00;
}

.seo-related-more {
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 650;
}

.seo-related-more a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Bottom CTA (footer-cta cousin) —— */

.seo-bottom-cta {
  padding: 8px 0 48px;
}

.seo-bottom-cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  padding: 28px 32px;
  border-radius: 28px;
  background: #111;
  color: #fff;
  box-shadow: 0 20px 48px rgba(17, 17, 17, 0.16);
}

.seo-bottom-cta-title {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.seo-bottom-cta-text {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
}

.seo-bottom-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.seo-bottom-cta-actions .c-btn--nav {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.seo-bottom-cta-actions .c-btn--nav:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* —— Footer-top SEO links grid —— */

.seo-links {
  padding: 56px 0 48px;
  background: #fff;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.seo-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}

.seo-links-item {
  min-width: 0;
}

.seo-links-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.seo-links-title a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111;
  text-decoration: none;
  transition: color 160ms ease;
}

.seo-links-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(17, 17, 17, 0.04),
    0 6px 14px rgba(17, 17, 17, 0.08),
    0 12px 22px rgba(17, 17, 17, 0.05);
}

.seo-links-avatar--sm {
  width: 32px;
  height: 32px;
}

.seo-links-avatar img {
  width: 72%;
  height: auto;
  display: block;
  transform: translateY(2px);
}

.seo-links-label {
  min-width: 0;
}

.seo-links-title a:hover,
.seo-links-title a:focus-visible {
  color: #5a6f00;
}

.seo-links-title a:hover .seo-links-label,
.seo-links-title a:focus-visible .seo-links-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-links-text {
  margin: 0;
  padding-left: 46px;
  font-size: 13px;
  line-height: 1.55;
  color: #666;
}

@media (max-width: 991.98px) {
  .seo-hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .seo-hero-avatar {
    width: 88px;
    height: 88px;
  }

  .seo-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
  }

  .seo-article-layout {
    grid-template-columns: 1fr;
  }

  .seo-bottom-cta-panel {
    padding: 24px 22px;
  }
}

@media (max-width: 575.98px) {
  .seo-links {
    padding: 40px 0 32px;
  }

  .seo-links-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .seo-prose {
    padding: 22px 18px 26px;
    border-radius: 20px;
  }

  .seo-links-text {
    padding-left: 46px;
  }

  .seo-bottom-cta-actions {
    width: 100%;
  }

  .seo-bottom-cta-actions .c-btn {
    width: 100%;
    justify-content: center;
  }
}
