/* About page + treatment detail layouts — responsive */

body.page-inner-about .page-hero-title,
body.page-inner-about .section-title,
body.page-treatment .page-hero-title,
body.page-treatment .section-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.page-inner-about .page-hero-breadcrumb,
body.page-treatment .page-hero-breadcrumb {
  flex-wrap: wrap;
  row-gap: 0.35rem;
  column-gap: 0.5rem;
}

@media (max-width: 575.98px) {
  body.page-inner-about .about-training-heading {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
  }

  body.page-inner-about .person-behind-panel-icon {
    font-size: 1.45rem;
  }

  body.page-inner-about .cta-band-title,
  body.page-treatment .cta-band-title {
    font-size: clamp(1.15rem, 4vw, 1.5rem);
  }

  body.page-inner-about .cta-band-text,
  body.page-treatment .cta-band-text {
    font-size: clamp(0.88rem, 2.8vw, 1rem);
    line-height: 1.55;
  }

  body.page-treatment .accordion-premium .accordion-button {
    font-size: 0.88rem;
    padding: 1.05rem 1.1rem;
    white-space: normal;
    line-height: 1.4;
  }

  body.page-treatment .accordion-premium .accordion-body {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  body.page-inner-about .page-inner-cta-row,
  body.page-treatment .page-inner-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-inner-about .page-inner-cta-row > a,
  body.page-treatment .page-inner-hero-cta > a {
    width: 100%;
    justify-content: center;
  }

  body.page-inner-about .cta-band--rich-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-inner-about .cta-band--rich-actions > a {
    width: 100%;
    justify-content: center;
  }
}

/* About — Areas of Specialisation: card grid (one row = even columns at md/lg) */
body.page-inner-about .about-expertise-grid .card-service {
  height: 100%;
}

@media (max-width: 575.98px) {
  body.page-inner-about .about-expertise-grid .service-title {
    font-size: clamp(1rem, 3.5vw, 1.15rem);
  }

  body.page-inner-about .about-expertise-grid .service-desc {
    font-size: 0.92rem;
    line-height: 1.65;
  }
}

/* Blog article (single.php) */
body.page-blog-detail .page-hero-breadcrumb {
  flex-wrap: wrap;
  row-gap: 0.35rem;
  column-gap: 0.5rem;
}

body.page-blog-detail .article-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--color-text-base);
}

body.page-blog-detail .article-body h1 {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 1.25rem;
  color: var(--color-text-dark);
  line-height: 1.3;
}

body.page-blog-detail .article-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  color: var(--color-text-dark);
}

body.page-blog-detail .article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  color: var(--color-text-dark);
}

body.page-blog-detail .article-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--color-text-dark);
}

body.page-blog-detail .article-body h5 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--color-text-dark);
}

body.page-blog-detail .article-body h6 {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 1.25rem 0 0.4rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.page-blog-detail .article-body p {
  margin-bottom: 1.25rem;
}

body.page-blog-detail .article-body ul,
body.page-blog-detail .article-body ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

body.page-blog-detail .article-body ul li,
body.page-blog-detail .article-body ol li {
  margin-bottom: 0.5rem;
}

body.page-blog-detail .article-body .wp-block-image img,
body.page-blog-detail .article-body img {
  max-width: 100%;
  height: auto;
}

body.page-blog-detail .related-articles-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--color-text-dark);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

body.page-blog-detail .single-post-author {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--color-border);
  margin-top: 3rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

body.page-blog-detail .single-post-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}

body.page-blog-detail .single-post-sidebar-cta {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

/* Single post hero — author & category links on dark overlay */
body.page-blog-detail .page-hero-meta a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

body.page-blog-detail .page-hero-meta a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.65);
}

/* Blog index + category/author/tag archives — category pill as link; author link in meta row */
body.page-blog a.blog-category,
body.page-archive-blog a.blog-category {
  text-decoration: none;
}

body.page-blog a.blog-category:hover,
body.page-archive-blog a.blog-category:hover {
  filter: brightness(0.92);
}

body.page-blog .blog-meta span a,
body.page-archive-blog .blog-meta span a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

body.page-blog .blog-meta span a:hover,
body.page-archive-blog .blog-meta span a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Category / author / tag archive heroes (card grid below matches blog index) */
body.page-archive-blog .page-hero-breadcrumb {
  flex-wrap: wrap;
  row-gap: 0.35rem;
  column-gap: 0.5rem;
}

body.page-archive-blog .page-hero-archive-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 640px;
  margin-top: 0.75rem;
}

body.page-archive-blog .page-hero-archive-desc p:last-child {
  margin-bottom: 0;
}
