/* 1.1.17: shared service-card heading alignment. */
html body article.service-card.panith-dynamic-service > .service-card-link,
html body .service-grid > article.service-card > .service-card-link,
html body .panith-service-area-grid > article.service-card > .service-card-link {
  text-align: left !important;
}

html body article.service-card.panith-dynamic-service > .service-card-link > :is(.icon,.service-icon,.service-custom-icon,svg,h2,h3,p,.service-card-action),
html body .service-grid > article.service-card > .service-card-link > :is(.icon,.service-icon,.service-custom-icon,svg,h2,h3,p,.service-card-action),
html body .panith-service-area-grid > article.service-card > .service-card-link > :is(.icon,.service-icon,.service-custom-icon,svg,h2,h3,p,.service-card-action) {
  align-self: flex-start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

/* Structural merge Phase 3: unified Knowledge service-card rhythm. */
body.page-template-page-knowledge-hub .panith-service-area-grid > article.service-card,
body.single-panith_knowledge .panith-related-content .panith-card-grid > article.service-card {
  display: flex !important;
  min-width: 0 !important;
}

body.page-template-page-knowledge-hub .panith-service-area-grid > article.service-card > .service-card-link,
body.single-panith_knowledge .panith-related-content .panith-card-grid > article.service-card > .service-card-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 100% !important;
  height: auto !important;
  padding: clamp(26px, 2.4vw, 34px) !important;
}

body.page-template-page-knowledge-hub .panith-service-area-grid .service-card .service-custom-icon,
body.page-template-page-knowledge-hub .panith-service-area-grid .service-card .service-icon,
body.page-template-page-knowledge-hub .panith-service-area-grid .service-card svg,
body.single-panith_knowledge .panith-related-content .service-card .service-custom-icon,
body.single-panith_knowledge .panith-related-content .service-card .service-icon,
body.single-panith_knowledge .panith-related-content .service-card svg {
  width: clamp(46px, 3.4vw, 54px) !important;
  height: clamp(46px, 3.4vw, 54px) !important;
  flex: 0 0 auto !important;
  margin-bottom: clamp(14px, 1.35vw, 18px) !important;
}

body.page-template-page-knowledge-hub .panith-service-area-grid .service-card h2,
body.page-template-page-knowledge-hub .panith-service-area-grid .service-card h3,
body.single-panith_knowledge .panith-related-content .service-card h2,
body.single-panith_knowledge .panith-related-content .service-card h3 {
  width: 100% !important;
  min-height: 2.22em !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  line-height: 1.14 !important;
  transform: none !important;
}

body.single-panith_knowledge .panith-related-content .service-card h2,
body.single-panith_knowledge .panith-related-content .service-card h3 {
  padding-top: clamp(12px, 1.2vw, 16px) !important;
}

body.page-template-page-knowledge-hub .panith-service-area-grid .service-card p,
body.single-panith_knowledge .panith-related-content .service-card p {
  width: 100% !important;
  min-height: 4.45em !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  line-height: 1.5 !important;
}

body.page-template-page-knowledge-hub .panith-service-area-grid .service-card .service-card-action,
body.single-panith_knowledge .panith-related-content .service-card .service-card-action {
  align-self: stretch !important;
  margin-top: auto !important;
}

body.single-panith_knowledge .panith-related-content .panith-card-grid {
  align-items: stretch !important;
  gap: clamp(22px, 2.4vw, 34px) !important;
}

body.single-panith_knowledge .panith-related-content .panith-card-grid > article {
  display: flex !important;
  height: auto !important;
  min-height: clamp(320px, 24vw, 380px) !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
}

body.single-panith_knowledge .panith-related-content .panith-card-grid > article > a {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 100% !important;
  height: 100% !important;
  padding: clamp(26px, 2.4vw, 34px) !important;
}

body.single-panith_knowledge .panith-related-content .panith-card-grid > article h2,
body.single-panith_knowledge .panith-related-content .panith-card-grid > article h3,
body.single-panith_knowledge .panith-related-content .panith-card-grid > article .entry-title {
  width: 100% !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  line-height: 1.14 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: manual !important;
}

body.single-panith_knowledge .panith-related-content .panith-card-grid > article p,
body.single-panith_knowledge .panith-related-content .panith-card-grid > article .entry-summary {
  width: 100% !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  line-height: 1.5 !important;
}

body.single-panith_knowledge .panith-related-content .panith-card-grid > article .entry-meta,
body.single-panith_knowledge .panith-related-content .panith-card-grid > article .card-meta {
  margin-bottom: 10px !important;
  line-height: 1.35 !important;
}

body.single-panith_knowledge .panith-related-content .panith-card-grid > article .service-card-action,
body.single-panith_knowledge .panith-related-content .panith-card-grid > article .read-more,
body.single-panith_knowledge .panith-related-content .panith-card-grid > article .read-more-inline,
body.single-panith_knowledge .panith-related-content .panith-card-grid > article .btn {
  margin-top: auto !important;
}

html body.single-panith_knowledge .panith-related-content .panith-card-grid > article.service-card > a.service-card-link > img.service-custom-icon,
html body.single-panith_knowledge .panith-related-content .panith-card-grid > article.service-card > a.service-card-link > .service-icon,
html body.single-panith_knowledge .panith-related-content .panith-card-grid > article.service-card > a.service-card-link > svg {
  margin-bottom: clamp(14px, 1.35vw, 18px) !important;
}

html body.single-panith_knowledge .panith-related-content .panith-card-grid > article.service-card > a.service-card-link > h2,
html body.single-panith_knowledge .panith-related-content .panith-card-grid > article.service-card > a.service-card-link > h3 {
  align-self: flex-start !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

html body.single-panith_knowledge .panith-related-content .panith-card-grid > article.service-card > a.service-card-link > span.service-card-action {
  align-self: stretch !important;
  margin-top: auto !important;
}

@media (max-width: 700px) {
  body.page-template-page-knowledge-hub .panith-service-area-grid .service-card h2,
  body.page-template-page-knowledge-hub .panith-service-area-grid .service-card h3,
  body.single-panith_knowledge .panith-related-content .service-card h2,
  body.single-panith_knowledge .panith-related-content .service-card h3 {
    min-height: 0 !important;
  }

  body.page-template-page-knowledge-hub .panith-service-area-grid .service-card p,
  body.single-panith_knowledge .panith-related-content .service-card p {
    min-height: 0 !important;
  }

  body.single-panith_knowledge .panith-related-content .panith-card-grid > article {
    min-height: 0 !important;
  }
}
/* 1.1.15: align Knowledge Hub service cards with the homepage service-card rhythm. */
body.page-template-page-knowledge-hub .panith-service-area-grid > article.service-card {
  width: 100% !important;
  min-height: clamp(288px, 20.5vw, 306px) !important;
  align-self: stretch !important;
}

body.page-template-page-knowledge-hub .panith-service-area-grid > article.service-card > .service-card-link {
  min-height: 100% !important;
  padding: clamp(24px, 2vw, 30px) !important;
}

body.page-template-page-knowledge-hub .panith-service-area-grid .service-card .service-custom-icon,
body.page-template-page-knowledge-hub .panith-service-area-grid .service-card .service-icon,
body.page-template-page-knowledge-hub .panith-service-area-grid .service-card .service-card-icon,
body.page-template-page-knowledge-hub .panith-service-area-grid .service-card svg {
  width: clamp(46px, 4vw, 58px) !important;
  height: clamp(46px, 4vw, 58px) !important;
  margin-bottom: clamp(12px, 1.1vw, 16px) !important;
}

body.page-template-page-knowledge-hub .panith-service-area-grid .service-card h2,
body.page-template-page-knowledge-hub .panith-service-area-grid .service-card h3 {
  font-size: clamp(1.15rem, 1.35vw, 1.36rem) !important;
  line-height: 1.14 !important;
  margin-top: clamp(12px, 1.25vw, 16px) !important;
  margin-bottom: 12px !important;
}

body.page-template-page-knowledge-hub .panith-service-area-grid .service-card p {
  font-size: clamp(0.94rem, 0.96vw, 1.02rem) !important;
  line-height: 1.52 !important;
  min-height: 3.35em !important;
  margin-bottom: 12px !important;
}

body.page-template-page-knowledge-hub .panith-service-area-grid .service-card .service-card-action {
  align-self: stretch !important;
  margin-top: clamp(16px, 1.3vw, 20px) !important;
}

@media (max-width: 700px) {
  body.page-template-page-knowledge-hub .panith-service-area-grid > article.service-card {
    min-height: 0 !important;
  }

  body.page-template-page-knowledge-hub .panith-service-area-grid > article.service-card > .service-card-link {
    padding: 28px !important;
  }

  body.page-template-page-knowledge-hub .panith-service-area-grid .service-card p {
    min-height: 0 !important;
  }
}
/* 1.1.15: late-cascade guard for Knowledge Hub service-card parity. */
html body.page-template-page-knowledge-hub main#content.panith-hub-page .panith-section .panith-service-area-grid > article.service-card.panith-dynamic-service {
  min-height: clamp(288px, 20.5vw, 306px) !important;
  height: auto !important;
  display: flex !important;
  align-self: stretch !important;
}

html body.page-template-page-knowledge-hub main#content.panith-hub-page .panith-section .panith-service-area-grid > article.service-card.panith-dynamic-service > a.service-card-link {
  min-height: 100% !important;
  height: auto !important;
  padding: clamp(24px, 2vw, 30px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}

html body.page-template-page-knowledge-hub main#content.panith-hub-page .panith-section .panith-service-area-grid > article.service-card.panith-dynamic-service > a.service-card-link > img.service-custom-icon,
html body.page-template-page-knowledge-hub main#content.panith-hub-page .panith-section .panith-service-area-grid > article.service-card.panith-dynamic-service > a.service-card-link > .service-icon,
html body.page-template-page-knowledge-hub main#content.panith-hub-page .panith-section .panith-service-area-grid > article.service-card.panith-dynamic-service > a.service-card-link > .service-card-icon,
html body.page-template-page-knowledge-hub main#content.panith-hub-page .panith-section .panith-service-area-grid > article.service-card.panith-dynamic-service > a.service-card-link > svg {
  width: clamp(46px, 4vw, 58px) !important;
  height: clamp(46px, 4vw, 58px) !important;
  margin-bottom: clamp(12px, 1.1vw, 16px) !important;
}

html body.page-template-page-knowledge-hub main#content.panith-hub-page .panith-section .panith-service-area-grid > article.service-card.panith-dynamic-service > a.service-card-link > h2,
html body.page-template-page-knowledge-hub main#content.panith-hub-page .panith-section .panith-service-area-grid > article.service-card.panith-dynamic-service > a.service-card-link > h3 {
  font-size: clamp(1.15rem, 1.35vw, 1.36rem) !important;
  line-height: 1.14 !important;
  min-height: 2.28em !important;
  margin-top: clamp(12px, 1.25vw, 16px) !important;
  margin-bottom: 12px !important;
}

html body.page-template-page-knowledge-hub main#content.panith-hub-page .panith-section .panith-service-area-grid > article.service-card.panith-dynamic-service > a.service-card-link > p {
  font-size: clamp(0.94rem, 0.96vw, 1.02rem) !important;
  line-height: 1.52 !important;
  min-height: 3.35em !important;
  margin-bottom: 12px !important;
}

html body.page-template-page-knowledge-hub main#content.panith-hub-page .panith-section .panith-service-area-grid > article.service-card.panith-dynamic-service > a.service-card-link > .service-card-action {
  align-self: stretch !important;
  margin-top: clamp(16px, 1.3vw, 20px) !important;
}

@media (max-width: 700px) {
  html body.page-template-page-knowledge-hub main#content.panith-hub-page .panith-section .panith-service-area-grid > article.service-card.panith-dynamic-service {
    min-height: 0 !important;
  }

  html body.page-template-page-knowledge-hub main#content.panith-hub-page .panith-section .panith-service-area-grid > article.service-card.panith-dynamic-service > a.service-card-link {
    padding: 28px !important;
  }

  html body.page-template-page-knowledge-hub main#content.panith-hub-page .panith-section .panith-service-area-grid > article.service-card.panith-dynamic-service > a.service-card-link > h2,
  html body.page-template-page-knowledge-hub main#content.panith-hub-page .panith-section .panith-service-area-grid > article.service-card.panith-dynamic-service > a.service-card-link > h3,
  html body.page-template-page-knowledge-hub main#content.panith-hub-page .panith-section .panith-service-area-grid > article.service-card.panith-dynamic-service > a.service-card-link > p {
    min-height: 0 !important;
  }
}
