.single-post-page {
  --sp-text: #1f2e3a;
  --sp-muted: #5b6770;
  --sp-border: #d9e4ea;
  --sp-bg: #ffffff;
  --sp-soft: #f7f9fb;
  --sp-dark: #234f6c;
  --sp-accent: #7AB648;
  --sp-accent-dark: #5a8f32;
  --sp-radius: 20px;
  --sp-shadow: 0 10px 30px rgba(31, 46, 58, 0.08);
  color: var(--sp-text);
}

.single-post-container {
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
}

.single-post-section {
  padding: 72px 0;
}

.single-post-hero {
  background: linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--sp-border);
}

.single-post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
  color: var(--sp-accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.single-post-separator {
  color: #9aacb8;
}

.single-post-title {
  margin: 0 0 18px;
  color: var(--sp-dark);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
}

.single-post-lead {
  margin: 0;
  color: var(--sp-muted);
  font-size: 19px;
  line-height: 1.8;
}

.single-post-content-section {
  background: #fff;
}

.single-post-content {
  background: #fff;
}

.single-post-featured-image {
  margin-bottom: 30px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--sp-shadow);
}

.single-post-featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

.single-post-entry {
  color: var(--sp-text);
  font-size: 18px;
  line-height: 1.85;
}

.single-post-entry > *:first-child {
  margin-top: 0;
}

.single-post-entry h2,
.single-post-entry h3,
.single-post-entry h4 {
  color: var(--sp-dark);
  line-height: 1.2;
  margin-top: 40px;
  margin-bottom: 16px;
}

.single-post-entry h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.single-post-entry h3 {
  font-size: clamp(22px, 3vw, 30px);
}

.single-post-entry p,
.single-post-entry ul,
.single-post-entry ol,
.single-post-entry blockquote {
  margin-bottom: 20px;
}

.single-post-entry ul,
.single-post-entry ol {
  padding-left: 22px;
}

.single-post-entry a {
  color: var(--sp-accent-dark);
}

.single-post-entry img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.single-post-related {
  background: var(--sp-soft);
}

.single-post-section-title {
  margin: 0 0 22px;
  color: var(--sp-dark);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.single-post-related-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.single-post-related-card,
.single-post-cta-box {
  background: var(--sp-bg);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
}

.single-post-related-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.single-post-related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(31, 46, 58, 0.12);
  border-color: #c7d7e2;
}

.single-post-related-link-wrap {
  display: block;
  text-decoration: none !important;
  color: inherit;
}

.single-post-related-body {
  padding: 24px;
}

.single-post-related-date {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--sp-accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.single-post-related-card h3 {
  margin: 0;
  color: var(--sp-dark);
  font-size: 21px;
  line-height: 1.3;
}

.single-post-empty,
.single-post-text {
  color: var(--sp-muted);
  font-size: 17px;
  line-height: 1.75;
}

.single-post-cta {
  background: #fff;
}

.single-post-cta-box {
  padding: 42px 40px;
  border: 0;
  background: #f7f9fb;
  box-shadow: none;
}

.single-post-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.single-post-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.single-post-btn:hover {
  transform: translateY(-2px);
}

.single-post-btn-primary {
  background: var(--sp-accent);
  color: #fff;
}

.single-post-btn-primary:hover {
  background: var(--sp-accent-dark);
  color: #fff;
}

.single-post-btn-secondary {
  background: transparent;
  color: var(--sp-dark);
  border-color: var(--sp-border);
}

.single-post-btn-secondary:hover {
  border-color: var(--sp-dark);
  color: var(--sp-dark);
}

@media (max-width: 991px) {
  .single-post-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .single-post-section {
    padding: 56px 0;
  }

  .single-post-title {
    font-size: 34px;
  }

  .single-post-lead,
  .single-post-entry,
  .single-post-empty,
  .single-post-text {
    font-size: 16px;
    line-height: 1.7;
  }

  .single-post-btn {
    width: 100%;
  }
}

/* Single post stronger width override */
.single-post-page {
  width: 100%;
}

.single-post-page .single-post-container {
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
}

.single-post-page .single-post-content,
.single-post-page .single-post-entry,
.single-post-page .single-post-hero,
.single-post-page .single-post-content-section,
.single-post-page .single-post-related,
.single-post-page .single-post-cta {
  width: 100%;
  max-width: none;
}
