.single-post {
  --text-dark: #101828;
  --text-medium: #4a5565;
  --text-strong: #0a0a0a;
  --container: 1290px;
  --article-col: 740px;
  --sidebar-col: 502px;
  --grid-gap: 48px;
  --stroke: #d1d5dc;
  --pink: #ffb6c1;
  --pink-cta-bg: #fdf2f8;
  --pink-cta-stroke: #fce7f3;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --puzzle: url('/wp-content/uploads/2026/03/LogoTCH.png');
  color: var(--text-dark);
  background: #fff;
  font-family: "Nunito", sans-serif;
  overflow-x: clip;
}

.single-post__hero {
  min-height: 461px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: #fff;
}

.single-post__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--article-hero-image) center/cover no-repeat;
}

.single-post__hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.single-post__hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100vw - 48px));
  padding: 48px 0;
}

.single-post__hero-title {
  margin: 0;
  color: var(--text-medium);
  font-size: clamp(42px, 4.2vw, 67px);
  line-height: 1.08;
  font-weight: 600;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.single-post__hero-meta {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.single-post__hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.5;
}

.single-post__hero-meta-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.single-post__article-shell {
  position: relative;
  padding: 96px 0;
}

.single-post__container {
  width: min(var(--container), calc(100vw - 48px));
  margin: 0 auto;
}

.single-post__layout {
  display: grid;
  grid-template-columns: var(--article-col) var(--sidebar-col);
  gap: var(--grid-gap);
  align-items: start;
}

.single-post__content-col {
  min-width: 0;
}

.single-post__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

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

.single-post__body > *:last-child {
  margin-bottom: 0;
}

.single-post__body h2 {
  margin: 44px 0 14px;
  font-size: 47px;
  line-height: 1.1;
  font-weight: 400;
  color: var(--text-medium);
  overflow-wrap: anywhere;
}

.single-post__body h3 {
  margin: 32px 0 12px;
  font-size: 39px;
  line-height: 1.1;
  font-weight: 400;
  color: var(--text-medium);
  overflow-wrap: anywhere;
}

.single-post__body h4 {
  margin: 28px 0 10px;
  font-size: 33px;
  line-height: 1.15;
  font-weight: 400;
  color: var(--text-medium);
}

.single-post__body h5 {
  margin: 24px 0 10px;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--text-medium);
}

.single-post__body h6 {
  margin: 22px 0 10px;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--text-medium);
}

.single-post__body p,
.single-post__body ul,
.single-post__body ol {
  margin: 0 0 18px;
}

.single-post__body ul,
.single-post__body ol {
  padding-left: 1.35em;
}

.single-post__body img,
.single-post__body video,
.single-post__body iframe {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
}

.single-post__sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 18px;
}

.admin-bar .single-post__sidebar {
  top: 136px;
}

.single-post__sidebar-card {
  border: 2px solid var(--stroke);
  border-radius: 10px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid;
  gap: 16px;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}

.single-post__sidebar-card:hover {
  transform: translateY(-3px);
  border-color: #b7bec9;
  box-shadow: 0 14px 24px rgba(16, 24, 40, 0.08);
}

.single-post__sidebar-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  display: grid;
  place-items: center;
}

.single-post__sidebar-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.single-post__sidebar-icon--pink {
  background: #ffd2d9;
}

.single-post__sidebar-icon--green {
  background: #bffdbf;
}

.single-post__sidebar-card h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.1;
  font-weight: 400;
  color: var(--text-medium);
}

.single-post__sidebar-card p {
  margin: 0;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-dark);
}

.single-post__sidebar-cta {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: var(--pink);
  color: #0f0f0f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.single-post__sidebar-cta:hover,
.single-post__sidebar-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.14);
}

.single-post__related {
  position: relative;
  padding: 16px 0 96px;
  background: #f9fafb;
}

.single-post__related-inner {
  width: min(1152px, calc(100vw - 48px));
  margin: 0 auto;
}

.single-post__related-inner > h2 {
  margin: 0 0 28px;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 500;
  color: #0a0a0a;
}

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

.single-post__related-card {
  background: var(--pink-cta-bg);
  border: 2px solid var(--pink-cta-stroke);
  border-radius: 40px;
  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.single-post__related-card:hover,
.single-post__related-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(16, 24, 40, 0.12);
}

.single-post__related-image-wrap {
  height: 192px;
  overflow: hidden;
}

.single-post__related-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.single-post__related-card:hover .single-post__related-image-wrap img,
.single-post__related-card:focus-visible .single-post__related-image-wrap img {
  transform: scale(1.04);
}

.single-post__related-content {
  padding: 20px 20px 24px;
  display: grid;
  gap: 12px;
}

.single-post__related-tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--pink);
  padding: 4px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #0a0a0a;
}

.single-post__related-content h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
  color: #0a0a0a;
  overflow-wrap: anywhere;
}

.single-post__related-read {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-medium);
}

.single-post__bottom-cta {
  padding: 0 0 96px;
}

.single-post__bottom-cta-card {
  width: min(1222px, calc(100vw - 48px));
  margin: 0 auto;
  background: var(--pink-cta-bg);
  border: 2px solid var(--pink-cta-stroke);
  border-radius: 48px;
  padding: 48px;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.09);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.single-post__bottom-cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fccee8;
  display: grid;
  place-items: center;
}

.single-post__bottom-cta-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.single-post__bottom-cta-copy h2 {
  margin: 0 0 10px;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 500;
  color: #0a0a0a;
}

.single-post__bottom-cta-copy p {
  margin: 0;
  font-size: 20px;
  line-height: 1.625;
  color: var(--text-medium);
}

.single-post__bottom-cta-button {
  min-width: 263px;
  min-height: 60px;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.single-post__bottom-cta-button:hover,
.single-post__bottom-cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(16, 24, 40, 0.25);
}

.single-post__decor {
  position: absolute;
  background: var(--puzzle) center/contain no-repeat;
  opacity: 0.11;
  pointer-events: none;
}

.single-post__decor--right {
  right: -120px;
  top: 190px;
  width: 360px;
  height: 420px;
  transform: rotate(22deg);
}

.single-post__decor--left {
  left: -80px;
  top: -10px;
  width: 320px;
  height: 340px;
  transform: rotate(-18deg);
}

@media (max-width: 1320px) {
  .single-post__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .single-post__sidebar,
  .admin-bar .single-post__sidebar {
    position: static;
    top: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .single-post__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-post__bottom-cta-card {
    grid-template-columns: auto 1fr;
  }

  .single-post__bottom-cta-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .single-post__hero {
    min-height: 330px;
  }

  .single-post__hero-inner,
  .single-post__container,
  .single-post__related-inner,
  .single-post__bottom-cta-card {
    width: calc(100% - 32px);
  }

  .single-post__hero-title {
    font-size: clamp(38px, 9vw, 42px);
  }

  .single-post__article-shell {
    padding: 64px 0;
  }

  .single-post__body h2 {
    font-size: 36px;
  }

  .single-post__body h3 {
    font-size: 31px;
  }

  .single-post__sidebar {
    grid-template-columns: 1fr;
  }

  .single-post__sidebar-card {
    padding: 24px;
  }

  .single-post__related {
    padding: 0 0 64px;
  }

  .single-post__related-inner > h2 {
    font-size: 38px;
    margin-bottom: 22px;
  }

  .single-post__related-grid {
    grid-template-columns: 1fr;
  }

  .single-post__bottom-cta {
    padding-bottom: 64px;
  }

  .single-post__bottom-cta-card {
    border-radius: 30px;
    padding: 32px 20px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .single-post__bottom-cta-copy h2 {
    font-size: 36px;
  }

  .single-post__bottom-cta-copy p {
    font-size: 18px;
    line-height: 1.55;
  }

  .single-post__bottom-cta-button {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .single-post__decor {
    display: none;
  }
}
