/* ============================================
   HP Renewal - Single / Page / Archive Styles
   Article detail, generic pages, archive listings
   BEM naming with hp- prefix
   Uses design system variables from variables.css
   Color: green theme (#2D8C46)
   ============================================ */

/* ============================
   BREADCRUMB
   ============================ */
.hp-breadcrumb {
  padding: var(--hp-space-md) 0;
  font-size: var(--hp-font-size-xs);
  color: var(--hp-text-muted);
  border-bottom: 1px solid var(--hp-border-light);
  background-color: var(--hp-bg-light);
}

.hp-breadcrumb__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hp-space-xs);
  max-width: var(--hp-container-max);
  margin: 0 auto;
  padding: 0 var(--hp-container-padding);
}

.hp-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: var(--hp-space-xs);
}

.hp-breadcrumb__item::after {
  content: ">";
  color: var(--hp-border);
  font-size: 0.625rem;
}

.hp-breadcrumb__item:last-child::after {
  display: none;
}

.hp-breadcrumb__link {
  color: #2D8C46;
  text-decoration: none;
  transition: color var(--hp-transition-fast);
}

.hp-breadcrumb__link:hover {
  color: var(--hp-primary-dark);
}

.hp-breadcrumb__current {
  color: var(--hp-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================
   SINGLE ARTICLE LAYOUT
   Full width (no sidebar)
   ============================ */
.hp-single {
  padding: var(--hp-space-2xl) 0 var(--hp-space-3xl);
}

.hp-single__container {
  max-width: var(--hp-container-narrow);
  margin: 0 auto;
  padding: 0 var(--hp-container-padding);
}

/* ============================
   ARTICLE HEADER
   ============================ */
.hp-single__header {
  padding-top: var(--hp-space-xl);
  padding-bottom: var(--hp-space-lg);
}

.hp-single__hero {
  padding-top: var(--hp-space-xl);
}

.hp-single__hero-inner {
  padding: clamp(1.8rem, 3.6vw, 3rem);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 246, 0.95) 58%, rgba(241, 248, 243, 0.98) 100%);
  border: 1px solid rgba(45, 140, 70, 0.1);
  box-shadow: 0 24px 48px rgba(10, 29, 49, 0.07);
}

.hp-single__cat-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  font-size: var(--hp-font-size-xs);
  font-weight: var(--hp-font-weight-medium);
  color: var(--hp-primary);
  background-color: rgba(45, 140, 70, 0.08);
  border-radius: var(--hp-radius-full);
  text-decoration: none;
  transition: all var(--hp-transition-fast);
  margin-bottom: var(--hp-space-sm);
  letter-spacing: 0.02em;
}

.hp-single__cat-badge:hover {
  background-color: rgba(45, 140, 70, 0.15);
  color: var(--hp-primary-dark);
}

/* ============================
   ARTICLE META
   ============================ */
.hp-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hp-space-sm) var(--hp-space-md);
  margin-bottom: var(--hp-space-lg);
  font-size: var(--hp-font-size-xs);
  color: var(--hp-text-muted);
}

.hp-single__date {
  display: inline-flex;
  align-items: center;
  gap: var(--hp-space-xs);
  letter-spacing: 0.02em;
  font-size: var(--hp-font-size-xs);
  color: var(--hp-text-muted);
}

.hp-single__date svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--hp-text-muted);
  stroke-width: 1.5;
}

.hp-single__updated {
  display: inline-flex;
  align-items: center;
  gap: var(--hp-space-xs);
  color: var(--hp-primary);
  letter-spacing: 0.02em;
}

.hp-single__updated svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--hp-primary);
  stroke-width: 1.5;
}

.hp-single__meta-date {
  display: inline-flex;
  align-items: center;
  gap: var(--hp-space-xs);
  font-size: var(--hp-font-size-xs);
  color: var(--hp-text-muted);
  letter-spacing: 0.02em;
}

.hp-single__categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hp-space-xs);
}

.hp-single__category {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-size: var(--hp-font-size-xs);
  font-weight: var(--hp-font-weight-medium);
  color: var(--hp-primary);
  background-color: rgba(45, 140, 70, 0.08);
  border-radius: var(--hp-radius-full);
  text-decoration: none;
  transition: all var(--hp-transition-fast);
}

.hp-single__category:hover {
  background-color: rgba(45, 140, 70, 0.15);
  color: var(--hp-primary-dark);
}

/* ============================
   ARTICLE TITLE
   ============================ */
.hp-single__title {
  font-family: var(--hp-font-heading);
  font-size: var(--hp-font-size-2xl);
  font-weight: var(--hp-font-weight-bold);
  color: var(--hp-dark);
  line-height: var(--hp-line-height-heading);
  margin-bottom: 0;
  margin-top: var(--hp-space-sm);
}

.hp-single__lead {
  margin-top: var(--hp-space-lg);
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--hp-text-light);
}

/* ============================
   FEATURED IMAGE
   ============================ */
.hp-single__thumbnail {
  margin-bottom: var(--hp-space-xl);
  overflow: hidden;
}

.hp-single__thumbnail img,
.hp-single__thumbnail-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--hp-radius-lg);
}

/* ============================
   AUTHOR / SUPERVISOR INFO
   ============================ */
.hp-single__author {
  display: flex;
  align-items: center;
  gap: var(--hp-space-sm);
  padding: var(--hp-space-md) var(--hp-space-lg);
  background-color: var(--hp-bg-light);
  border-radius: var(--hp-radius-md);
  border-left: 3px solid var(--hp-primary);
  margin-bottom: var(--hp-space-lg);
}

.hp-single__author-label {
  display: inline-block;
  font-size: var(--hp-font-size-xs);
  font-weight: var(--hp-font-weight-bold);
  color: #ffffff;
  background-color: var(--hp-primary);
  padding: 0.1rem 0.5rem;
  border-radius: var(--hp-radius-sm);
  letter-spacing: 0.05em;
}

.hp-single__author-name {
  font-size: var(--hp-font-size-sm);
  font-weight: var(--hp-font-weight-medium);
  color: var(--hp-text);
}

/* ============================
   ENTRY CONTENT (article body)
   WordPress content styling
   ============================ */
.hp-single__content {
  padding-top: var(--hp-space-xl);
  padding-bottom: var(--hp-space-xl);
}

.hp-single__content-panel {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(252, 253, 252, 1) 100%);
  border: 1px solid rgba(0, 39, 69, 0.08);
  box-shadow: 0 18px 40px rgba(10, 29, 49, 0.05);
}

.hp-entry-content {
  font-size: clamp(1rem, 1.4vw, 1.05rem);
  line-height: 2;
  color: var(--hp-text);
}

/* --- Headings --- */
.hp-entry-content h2 {
  font-family: var(--hp-font-heading);
  font-size: var(--hp-font-size-xl);
  font-weight: var(--hp-font-weight-bold);
  color: var(--hp-text);
  margin: var(--hp-space-2xl) 0 var(--hp-space-md);
  padding: var(--hp-space-md) var(--hp-space-lg);
  background: linear-gradient(145deg, rgba(246, 250, 246, 1) 0%, rgba(240, 248, 243, 1) 100%);
  border-left: 4px solid var(--hp-primary);
  border-radius: 0 18px 18px 0;
  line-height: var(--hp-line-height-tight);
}

.hp-entry-content h3 {
  font-family: var(--hp-font-heading);
  font-size: var(--hp-font-size-lg);
  font-weight: var(--hp-font-weight-bold);
  color: var(--hp-text);
  margin: var(--hp-space-xl) 0 var(--hp-space-md);
  padding-bottom: var(--hp-space-sm);
  border-bottom: 2px solid var(--hp-border);
  line-height: var(--hp-line-height-tight);
}

.hp-entry-content h4 {
  font-size: var(--hp-font-size-md);
  font-weight: var(--hp-font-weight-bold);
  color: var(--hp-text);
  margin: var(--hp-space-lg) 0 var(--hp-space-sm);
  line-height: var(--hp-line-height-tight);
}

.hp-entry-content h5,
.hp-entry-content h6 {
  font-size: var(--hp-font-size-base);
  font-weight: var(--hp-font-weight-bold);
  color: var(--hp-text-light);
  margin: var(--hp-space-lg) 0 var(--hp-space-sm);
  line-height: var(--hp-line-height-tight);
}

/* First heading needs no top margin */
.hp-entry-content > h2:first-child,
.hp-entry-content > h3:first-child,
.hp-entry-content > h4:first-child {
  margin-top: 0;
}

/* --- Paragraphs --- */
.hp-entry-content p {
  margin-bottom: var(--hp-space-lg);
}

.hp-entry-content p:last-child {
  margin-bottom: 0;
}

/* --- Links --- */
.hp-entry-content a {
  color: var(--hp-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--hp-transition-fast);
}

.hp-entry-content a:hover {
  color: var(--hp-primary-dark);
}

/* --- Strong / Em --- */
.hp-entry-content strong {
  font-weight: var(--hp-font-weight-bold);
  color: var(--hp-text);
}

/* --- Lists --- */
.hp-entry-content ul,
.hp-entry-content ol {
  margin: 0 0 var(--hp-space-lg);
  padding-left: var(--hp-space-xl);
}

.hp-entry-content ul {
  list-style: disc;
}

.hp-entry-content ol {
  list-style: decimal;
}

.hp-entry-content li {
  margin-bottom: var(--hp-space-sm);
  line-height: var(--hp-line-height);
}

.hp-entry-content li:last-child {
  margin-bottom: 0;
}

.hp-entry-content ul ul,
.hp-entry-content ol ol,
.hp-entry-content ul ol,
.hp-entry-content ol ul {
  margin-top: var(--hp-space-sm);
  margin-bottom: 0;
}

/* --- Blockquotes --- */
.hp-entry-content blockquote {
  margin: var(--hp-space-lg) 0;
  padding: var(--hp-space-lg) var(--hp-space-xl);
  background-color: var(--hp-bg-light);
  border-left: 4px solid var(--hp-border);
  border-radius: 0 var(--hp-radius-md) var(--hp-radius-md) 0;
  font-style: italic;
  color: var(--hp-text-light);
}

.hp-entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.hp-entry-content blockquote cite {
  display: block;
  margin-top: var(--hp-space-sm);
  font-size: var(--hp-font-size-sm);
  font-style: normal;
  color: var(--hp-text-muted);
}

/* --- Images --- */
.hp-entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  margin: var(--hp-space-lg) 0;
}

.hp-entry-content figure {
  margin: var(--hp-space-lg) 0;
}

.hp-entry-content figure img {
  margin: 0;
}

.hp-entry-content figcaption {
  font-size: var(--hp-font-size-xs);
  color: var(--hp-text-muted);
  text-align: center;
  margin-top: var(--hp-space-sm);
  writing-mode: horizontal-tb;
}

/* Legacy gallery (ul list of images): force 2x2 grid */
.hp-entry-content ul.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.hp-entry-content ul.wp-block-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
}

/* --- Tables --- */
.hp-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--hp-space-lg) 0;
  font-size: var(--hp-font-size-sm);
}

.hp-entry-content .wp-block-table {
  overflow-x: auto;
}

.hp-entry-content table th,
.hp-entry-content table td {
  padding: var(--hp-space-sm) var(--hp-space-md);
  border: 1px solid var(--hp-border);
  text-align: left;
  vertical-align: top;
}

.hp-entry-content table thead th {
  background-color: var(--hp-primary);
  color: #ffffff;
  font-weight: var(--hp-font-weight-medium);
}

.hp-entry-content table tbody th {
  background-color: var(--hp-bg-light);
  font-weight: var(--hp-font-weight-medium);
}

.hp-entry-content table tbody tr:nth-child(even) {
  background-color: var(--hp-bg-light);
}

/* Table responsive wrapper */
.hp-entry-content .hp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--hp-space-lg) 0;
}

.hp-entry-content .hp-table-wrap table {
  margin: 0;
  min-width: 500px;
}

/* --- Horizontal rules --- */
.hp-entry-content hr {
  border: none;
  height: 1px;
  background-color: var(--hp-border);
  margin: var(--hp-space-2xl) 0;
}

/* --- Code --- */
.hp-entry-content code {
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.875em;
  background-color: var(--hp-bg-light);
  padding: 0.15em 0.4em;
  border-radius: var(--hp-radius-sm);
  color: var(--hp-accent);
}

.hp-entry-content pre {
  margin: var(--hp-space-lg) 0;
  padding: var(--hp-space-lg);
  background-color: #2d3339;
  color: #e8ecf0;
  border-radius: var(--hp-radius-md);
  overflow-x: auto;
  font-size: var(--hp-font-size-sm);
  line-height: 1.6;
}

.hp-entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* --- WordPress Alignments --- */
.hp-entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hp-entry-content .alignleft {
  float: left;
  margin-right: var(--hp-space-lg);
  margin-bottom: var(--hp-space-md);
}

.hp-entry-content .alignright {
  float: right;
  margin-left: var(--hp-space-lg);
  margin-bottom: var(--hp-space-md);
}

.hp-entry-content .wp-caption {
  max-width: 100%;
}

/* --- WordPress Block Styles --- */
.hp-entry-content .wp-block-image {
  margin: var(--hp-space-lg) 0;
}

.hp-entry-content .wp-block-columns {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: start;
  margin: var(--hp-space-xl) 0;
}

.hp-entry-content .wp-block-column {
  min-width: 0;
}

.hp-entry-content .wp-block-gallery,
.hp-entry-content .wp-block-gallery.has-nested-images,
.hp-entry-content .blocks-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.8rem);
  margin: var(--hp-space-xl) 0;
}

.hp-entry-content .wp-block-gallery .blocks-gallery-item,
.hp-entry-content .wp-block-gallery figure,
.hp-entry-content .blocks-gallery-grid .blocks-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
}

.hp-entry-content .wp-block-gallery img,
.hp-entry-content .blocks-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
}

/* Gallery captions — small, clean text below photo */
.hp-entry-content .wp-block-gallery figcaption,
.hp-entry-content .blocks-gallery-grid figcaption {
  display: block;
  writing-mode: horizontal-tb;
  text-align: center;
  font-size: 12px;
  color: #666;
  padding: 6px 4px 0;
  margin: 0;
  line-height: 1.4;
}

/* Doctor / Media-Text block — reference site style */
.hp-entry-content .wp-block-media-text {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
  margin: var(--hp-space-2xl) 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: #fafbfc;
  border-radius: 16px;
  border: 1px solid #eee;
}

@media (max-width: 599px) {
  .hp-entry-content .wp-block-media-text {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hp-entry-content .wp-block-media-text__media img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hp-entry-content .wp-block-media-text__content h3,
.hp-entry-content .wp-block-media-text__content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #002745;
  margin-bottom: 4px;
}

.hp-entry-content .wp-block-media-text__content h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 12px;
}

.hp-entry-content .wp-block-media-text__content ul {
  padding-left: 1.2em;
  margin: 8px 0;
}

.hp-entry-content .wp-block-media-text__content li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #444;
}

.hp-entry-content .has-text-align-center {
  text-align: center;
}

/* ============================
   ARTICLE FOOTER / TAGS
   ============================ */
.hp-single__footer {
  margin-top: var(--hp-space-2xl);
  padding-top: var(--hp-space-xl);
  border-top: 1px solid var(--hp-border);
}

.hp-single__author-card {
  display: grid;
  gap: var(--hp-space-lg);
  padding: clamp(1.2rem, 2.6vw, 2rem);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 250, 244, 0.95) 100%);
  border: 1px solid rgba(45, 140, 70, 0.12);
  box-shadow: 0 18px 40px rgba(10, 29, 49, 0.06);
  margin-bottom: var(--hp-space-xl);
}

.hp-single__author-photo {
  width: 180px;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
}

.hp-single__author-body {
  min-width: 0;
}

.hp-single__author-title {
  margin-top: 0.2rem;
  color: var(--hp-text-muted);
  font-size: var(--hp-font-size-sm);
  line-height: 1.7;
}

.hp-single__author-text {
  margin-top: var(--hp-space-md);
  color: var(--hp-text-light);
  font-size: var(--hp-font-size-sm);
  line-height: 1.9;
}

.hp-single__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hp-space-sm);
}

.hp-single__tags-label {
  font-size: var(--hp-font-size-sm);
  font-weight: var(--hp-font-weight-bold);
  color: var(--hp-text-light);
}

.hp-single__tag {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  font-size: var(--hp-font-size-xs);
  color: var(--hp-text-light);
  background-color: var(--hp-bg-light);
  border: 1px solid var(--hp-border-light);
  border-radius: var(--hp-radius-full);
  text-decoration: none;
  transition: all var(--hp-transition-fast);
}

.hp-single__tag:hover {
  border-color: var(--hp-primary);
  color: var(--hp-primary);
  background-color: rgba(45, 140, 70, 0.05);
}

/* ============================
   POST NAVIGATION
   ============================ */
.hp-post-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--hp-space-md);
  margin-top: var(--hp-space-xl);
  padding-top: var(--hp-space-xl);
  border-top: 1px solid var(--hp-border-light);
}

.hp-post-nav__item {
  flex: 1;
  min-width: 0;
}

.hp-post-nav__item--next {
  text-align: right;
}

.hp-post-nav__label {
  display: block;
  font-size: var(--hp-font-size-xs);
  color: var(--hp-text-muted);
  margin-bottom: var(--hp-space-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hp-post-nav__link {
  font-size: var(--hp-font-size-sm);
  font-weight: var(--hp-font-weight-medium);
  color: var(--hp-primary);
  text-decoration: none;
  transition: color var(--hp-transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-post-nav__link:hover {
  color: var(--hp-primary-dark);
}

/* ============================
   CTA SECTION (after article)
   ============================ */
.hp-single__cta {
  margin-top: var(--hp-space-2xl);
  padding: var(--hp-space-xl);
  text-align: center;
  background: linear-gradient(135deg, var(--hp-primary) 0%, var(--hp-primary-light) 100%);
  border-radius: var(--hp-radius-xl);
  color: #ffffff;
}

.hp-single__cta-title {
  font-family: var(--hp-font-heading);
  font-size: var(--hp-font-size-xl);
  font-weight: var(--hp-font-weight-bold);
  margin-bottom: var(--hp-space-sm);
}

.hp-single__cta-text {
  font-size: var(--hp-font-size-sm);
  opacity: 0.9;
  margin-bottom: var(--hp-space-lg);
  line-height: var(--hp-line-height);
}

.hp-single__cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--hp-space-md);
  flex-wrap: wrap;
}

/* ============================
   RELATED ARTICLES
   ============================ */
.hp-related {
  margin-top: var(--hp-space-3xl);
  padding-top: var(--hp-space-2xl);
  border-top: 1px solid var(--hp-border);
}

.hp-related__title {
  font-family: var(--hp-font-heading);
  font-size: var(--hp-font-size-xl);
  font-weight: var(--hp-font-weight-bold);
  color: var(--hp-text);
  text-align: center;
  margin-bottom: var(--hp-space-xl);
  position: relative;
}

.hp-related__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--hp-primary);
  margin: var(--hp-space-sm) auto 0;
  border-radius: 1px;
}

/* Legacy related grid (kept for backward compat) */
.hp-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hp-space-lg);
}

.hp-related__card {
  display: flex;
  gap: var(--hp-space-md);
  text-decoration: none;
  color: inherit;
  padding: var(--hp-space-md);
  border-radius: var(--hp-radius-md);
  border: 1px solid var(--hp-border-light);
  transition: all var(--hp-transition-normal);
}

.hp-related__card:hover {
  box-shadow: var(--hp-shadow-md);
  transform: translateY(-2px);
  border-color: var(--hp-border);
}

.hp-related__card-img {
  width: 120px;
  min-width: 120px;
  aspect-ratio: 3 / 2;
  border-radius: var(--hp-radius-sm);
  overflow: hidden;
  background-color: var(--hp-bg-light);
}

.hp-related__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-related__card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hp-related__card-date {
  font-size: var(--hp-font-size-xs);
  color: var(--hp-text-muted);
  margin-bottom: var(--hp-space-xs);
}

.hp-related__card-title {
  font-size: var(--hp-font-size-sm);
  font-weight: var(--hp-font-weight-medium);
  color: var(--hp-text);
  line-height: var(--hp-line-height-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================
   CARD GRID COMPONENT
   Reusable card grid for
   related articles, archives
   ============================ */
.hp-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hp-space-lg);
}

.hp-card-grid--3 {
  grid-template-columns: 1fr;
}

.hp-card-grid--4 {
  grid-template-columns: 1fr;
}

.hp-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--hp-radius-md);
  border: 1px solid var(--hp-border-light);
  overflow: hidden;
  transition: all var(--hp-transition-normal);
  background-color: #ffffff;
}

.hp-card:hover {
  box-shadow: var(--hp-shadow-md);
  transform: translateY(-3px);
  border-color: var(--hp-border);
}

.hp-card__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--hp-bg-light);
}

.hp-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--hp-transition-normal);
}

.hp-card:hover .hp-card__img {
  transform: scale(1.03);
}

.hp-card__img-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--hp-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-card__img-placeholder::after {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  background-color: var(--hp-border);
  border-radius: var(--hp-radius-sm);
  opacity: 0.4;
}

.hp-card__body {
  padding: var(--hp-space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hp-card__cat {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--hp-font-size-xs);
  font-weight: var(--hp-font-weight-medium);
  color: var(--hp-primary);
  background-color: rgba(45, 140, 70, 0.08);
  padding: 0.1rem 0.5rem;
  border-radius: var(--hp-radius-full);
  margin-bottom: var(--hp-space-xs);
  letter-spacing: 0.02em;
}

.hp-card__title {
  font-size: var(--hp-font-size-sm);
  font-weight: var(--hp-font-weight-medium);
  color: var(--hp-text);
  line-height: var(--hp-line-height-tight);
  margin-bottom: var(--hp-space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.hp-card__date {
  font-size: var(--hp-font-size-xs);
  color: var(--hp-text-muted);
  margin-top: auto;
}

/* ============================
   PAGE TEMPLATE
   Generic page (page.php)
   ============================ */
.hp-page__title {
  font-family: var(--hp-font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--hp-font-weight-bold);
  color: var(--hp-dark);
  line-height: var(--hp-line-height-heading);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: 0;
  border-bottom: 0;
  text-align: center;
  letter-spacing: 0.12em;
}

.hp-page__title::after {
  content: "";
  display: block;
  width: 92px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, rgba(45, 140, 70, 0) 0%, rgba(45, 140, 70, 0.92) 50%, rgba(45, 140, 70, 0) 100%);
}

.hp-page__content {
  max-width: 960px;
  margin: 0 auto;
}

.hp-page {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.hp-page .hp-container--narrow {
  max-width: 1100px;
}

.hp-page-hero {
  margin-bottom: clamp(2.2rem, 4vw, 3rem);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(240, 247, 251, 0.95) 0%, rgba(255, 255, 255, 0.99) 100%);
  border: 1px solid rgba(0, 39, 69, 0.08);
  box-shadow: 0 20px 40px rgba(10, 29, 49, 0.08);
}

.hp-page-hero__eyebrow {
  display: inline-block;
  color: var(--hp-primary);
  font-size: var(--hp-font-size-xs);
  font-weight: var(--hp-font-weight-bold);
  letter-spacing: 0.16em;
}

.hp-page-hero__lead {
  max-width: 780px;
  margin: 1rem auto 0;
  color: var(--hp-text-light);
  font-size: var(--hp-font-size-base);
  line-height: 1.9;
  text-align: center;
}

.hp-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 1.5rem;
}

.hp-page-hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(23, 50, 70, 0.12);
  background: linear-gradient(135deg, #173246 0%, #25536d 100%);
  color: #ffffff;
  font-size: var(--hp-font-size-sm);
  font-weight: var(--hp-font-weight-bold);
  text-decoration: none;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  transition: transform var(--hp-transition-fast), box-shadow var(--hp-transition-fast);
}

.hp-page-hero__action:hover {
  transform: translateY(-1px);
  box-shadow: var(--hp-shadow-sm);
  color: #ffffff;
}

.hp-page--facilities .hp-container--narrow {
  max-width: 1180px;
}

.hp-facility-grid {
  display: grid;
  gap: var(--hp-space-lg);
}

.hp-facility-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.3rem, 2.6vw, 2rem);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0%, rgba(240, 246, 252, 0.96) 100%);
  border: 1px solid rgba(0, 39, 69, 0.1);
  box-shadow: 0 18px 40px rgba(10, 29, 49, 0.06);
  color: inherit;
  text-decoration: none;
}

.hp-facility-card__eyebrow,
.hp-homecare__section-eyebrow,
.hp-homecare__eyebrow,
.hp-facility-contact__eyebrow {
  color: var(--hp-primary);
  font-size: var(--hp-font-size-xs);
  font-weight: var(--hp-font-weight-bold);
  letter-spacing: 0.14em;
}

.hp-facility-card__title,
.hp-facility-contact__title,
.hp-homecare__section-title {
  margin: 0;
  color: var(--hp-dark);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.4;
}

.hp-facility-card__lead {
  color: var(--hp-primary);
  font-size: var(--hp-font-size-sm);
  font-weight: var(--hp-font-weight-bold);
}

.hp-facility-card__copy,
.hp-facility-contact__text {
  color: var(--hp-text-light);
  font-size: var(--hp-font-size-sm);
  line-height: 1.9;
}

.hp-facility-card__cta {
  margin-top: auto;
  color: var(--hp-primary);
  font-weight: var(--hp-font-weight-bold);
}

.hp-facility-contact {
  display: grid;
  gap: var(--hp-space-lg);
  margin-top: var(--hp-space-2xl);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: 28px;
  background: rgba(45, 140, 70, 0.05);
  border: 1px solid rgba(45, 140, 70, 0.12);
}

.hp-facility-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hp-space-md);
}

.hp-homecare {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.hp-homecare .hp-container--narrow {
  max-width: 1180px;
}

.hp-homecare__hero {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(250, 247, 241, 0.95) 48%, rgba(241, 248, 243, 0.99) 100%);
  border: 1px solid rgba(233, 121, 41, 0.16);
  box-shadow: 0 28px 60px rgba(10, 29, 49, 0.08);
}

.hp-homecare__title {
  margin: 0.35rem 0 0;
  color: var(--hp-dark);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.2;
}

.hp-homecare__lead {
  margin-top: 1rem;
  color: var(--hp-text-light);
  font-size: 1rem;
  line-height: 1.95;
}

.hp-homecare__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.2rem;
}

.hp-homecare__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(45, 140, 70, 0.12);
  font-size: var(--hp-font-size-xs);
  font-weight: var(--hp-font-weight-bold);
  color: var(--hp-dark);
}

.hp-homecare__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hp-space-md);
  align-items: flex-start;
}

.hp-homecare__section {
  margin-top: clamp(2.2rem, 4vw, 3rem);
}

.hp-homecare__section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 1.2rem;
}

.hp-homecare__cards,
.hp-homecare__feature-grid {
  display: grid;
  gap: var(--hp-space-lg);
}

.hp-homecare__card,
.hp-homecare__feature {
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 39, 69, 0.08);
  box-shadow: 0 16px 34px rgba(10, 29, 49, 0.05);
}

.hp-homecare__section--soft .hp-homecare__feature {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 250, 244, 0.94) 100%);
}

.hp-homecare__card-title,
.hp-homecare__feature-title {
  margin: 0 0 0.6rem;
  color: var(--hp-dark);
  font-size: var(--hp-font-size-md);
  line-height: 1.5;
}

.hp-homecare__card-text,
.hp-homecare__feature-text {
  color: var(--hp-text-light);
  font-size: var(--hp-font-size-sm);
  line-height: 1.9;
}

.hp-homecare__doctor .hp-doctor__credentials {
  margin-top: var(--hp-space-md);
  padding-left: 1.25rem;
}

.hp-homecare__doctor .hp-doctor__credentials li {
  margin-bottom: 0.45rem;
  color: var(--hp-text-light);
}

.hp-homecare__steps {
  display: grid;
  gap: var(--hp-space-md);
  padding-left: 1.25rem;
}

.hp-homecare__steps li {
  padding: 1rem 1.15rem;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 39, 69, 0.08);
  box-shadow: 0 14px 28px rgba(10, 29, 49, 0.04);
}

.hp-homecare__steps strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--hp-dark);
}

.hp-homecare__steps span {
  color: var(--hp-text-light);
  line-height: 1.8;
}

.hp-page--care .hp-page__content {
  max-width: 920px;
}

.hp-page__content--care {
  font-size: var(--hp-font-size-base);
  line-height: 1.95;
}

.hp-page__content--care img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

/* Hide first hero-like image in care page content (slider below handles it) */
.hp-page__content--care > .hp-entry-content > .wp-block-image:first-child,
.hp-page__content--care > .hp-entry-content > figure:first-child,
.hp-page__content--care > .hp-entry-content > p:first-child > img:only-child {
  display: none;
}

/* PDF blocks are now extracted by PHP and moved to 関連資料 section */

.hp-page__content--care .wp-block-gallery img,
.hp-page__content--care .blocks-gallery-item img {
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  max-height: 320px;
  object-fit: cover;
}

.hp-page__content--care table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* -- Care detail hero: clean text-based header (no photo) -- */
.hp-care-detail-hero {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 28px;
  background: var(--hp-bg-light, #f7f8fa);
  border: 1px solid rgba(0, 39, 69, 0.07);
}

.hp-care-detail-hero__eyebrow {
  display: inline-block;
  color: var(--hp-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hp-care-detail-hero .hp-page__title {
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--hp-primary);
  display: inline-block;
}

.hp-care-detail-hero__lead {
  margin: 0;
  max-width: 780px;
  color: var(--hp-text-light);
  font-size: 1rem;
  line-height: 1.95;
}

.hp-care-detail-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.hp-care-detail-hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(26, 58, 74, 0.1);
}

.hp-care-detail-hero__stat dt {
  margin: 0;
  color: var(--hp-primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hp-care-detail-hero__stat dd {
  margin: 0;
  color: var(--hp-dark);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.hp-care-detail-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-start;
}

.hp-care-detail-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-care-detail-hero__links a {
  color: var(--hp-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 58, 74, 0.18);
}

.hp-care-detail-hero__links a:hover {
  color: var(--hp-primary);
  border-bottom-color: rgba(45, 125, 106, 0.35);
}

.hp-page-docs {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(243, 249, 245, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(45, 140, 70, 0.12);
  box-shadow: 0 16px 34px rgba(10, 29, 49, 0.06);
}

.hp-page-docs__header {
  margin-bottom: 1rem;
}

.hp-page-docs__eyebrow {
  display: inline-block;
  color: var(--hp-primary);
  font-size: var(--hp-font-size-xs);
  font-weight: var(--hp-font-weight-bold);
  letter-spacing: 0.14em;
}

.hp-page-docs__title {
  margin: 0.45rem 0 0;
  color: var(--hp-dark);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: var(--hp-font-weight-bold);
}

.hp-page-docs__list {
  display: grid;
  gap: 12px;
}

.hp-page-docs__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 39, 69, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform var(--hp-transition-fast), box-shadow var(--hp-transition-fast), border-color var(--hp-transition-fast);
}

.hp-page-docs__item:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 140, 70, 0.22);
  box-shadow: var(--hp-shadow-sm);
}

.hp-page-docs__item-title {
  font-weight: var(--hp-font-weight-bold);
  color: var(--hp-dark);
}

.hp-page-docs__item-meta {
  flex-shrink: 0;
  color: var(--hp-primary);
  font-size: var(--hp-font-size-sm);
  font-weight: var(--hp-font-weight-bold);
}

/* ============================
   ARCHIVE TEMPLATE
   Category / tag / date listings
   ============================ */
.hp-archive__header {
  text-align: center;
  margin-bottom: var(--hp-space-2xl);
}

.hp-archive__title {
  font-family: var(--hp-font-heading);
  font-size: var(--hp-font-size-2xl);
  font-weight: var(--hp-font-weight-bold);
  color: var(--hp-dark);
  line-height: var(--hp-line-height-heading);
  margin-bottom: var(--hp-space-sm);
}

.hp-archive__desc {
  font-size: var(--hp-font-size-base);
  color: var(--hp-text-light);
  line-height: var(--hp-line-height);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================
   EMPTY / NO RESULTS STATE
   ============================ */
.hp-empty {
  text-align: center;
  padding: var(--hp-space-3xl) var(--hp-space-lg);
}

.hp-empty__text {
  font-size: var(--hp-font-size-base);
  color: var(--hp-text-muted);
  line-height: var(--hp-line-height);
}

/* ============================
   PAGINATION
   WordPress pagination override
   ============================ */
.hp-pagination {
  margin-top: var(--hp-space-2xl);
  text-align: center;
}

.hp-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--hp-space-xs);
  flex-wrap: wrap;
}

.hp-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 var(--hp-space-sm);
  font-size: var(--hp-font-size-sm);
  color: var(--hp-text-light);
  text-decoration: none;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-sm);
  transition: all var(--hp-transition-fast);
}

.hp-pagination .page-numbers:hover {
  color: var(--hp-primary);
  border-color: var(--hp-primary);
  background-color: rgba(45, 140, 70, 0.05);
}

.hp-pagination .page-numbers.current {
  color: #ffffff;
  background-color: var(--hp-primary);
  border-color: var(--hp-primary);
  font-weight: var(--hp-font-weight-medium);
}

.hp-pagination .page-numbers.dots {
  border: none;
  color: var(--hp-text-muted);
  pointer-events: none;
}

.hp-pagination .page-numbers.prev,
.hp-pagination .page-numbers.next {
  font-size: var(--hp-font-size-xs);
  letter-spacing: 0.02em;
}

/* ============================
   RESPONSIVE
   ============================ */

/* --- Small Tablet (>= 500px) --- */
@media (min-width: 500px) {
  .hp-single__author-card,
  .hp-facility-grid,
  .hp-homecare__cards,
  .hp-homecare__feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-card-grid,
  .hp-card-grid--3,
  .hp-card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Tablet (>= 768px) --- */
@media (min-width: 768px) {
  .hp-homecare__hero {
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.85fr);
    align-items: center;
  }

  .hp-homecare__hero-actions {
    justify-content: flex-end;
  }

  .hp-single__title {
    font-size: var(--hp-font-size-3xl);
  }

  .hp-entry-content h2 {
    font-size: var(--hp-font-size-2xl);
  }

  .hp-entry-content h3 {
    font-size: var(--hp-font-size-xl);
  }

  .hp-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hp-related__card {
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  .hp-related__card-img {
    width: 100%;
    min-width: auto;
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }

  .hp-related__card-body {
    padding: var(--hp-space-md);
  }

  .hp-single__cta {
    padding: var(--hp-space-2xl) var(--hp-space-3xl);
  }

  .hp-single__cta-title {
    font-size: var(--hp-font-size-2xl);
  }

  .hp-card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .hp-card-grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .hp-page__title {
    font-size: var(--hp-font-size-3xl);
  }

  .hp-archive__title {
    font-size: var(--hp-font-size-3xl);
  }

  .hp-page-hero {
    padding: var(--hp-space-2xl);
  }

  .hp-facility-contact {
    grid-template-columns: minmax(0, 1.5fr) auto;
    align-items: center;
  }
}

/* --- Desktop (>= 900px) --- */
@media (min-width: 900px) {
  .hp-single {
    padding: var(--hp-space-3xl) 0 var(--hp-space-4xl);
  }

  .hp-single__container {
    padding: 0 var(--hp-space-xl);
  }

  .hp-card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 639px) {
  .hp-homecare__hero-actions .hp-btn,
  .hp-facility-contact__actions .hp-btn {
    width: 100%;
  }

  .hp-page-hero {
    padding: 1.5rem 1.25rem;
    border-radius: 22px;
  }

  .hp-page-hero__actions {
    flex-direction: column;
  }

  .hp-page-hero__action {
    width: 100%;
  }
}

/* ============================
   PRINT STYLES
   ============================ */
@media print {
  .hp-single__cta,
  .hp-related,
  .hp-post-nav,
  .hp-pagination {
    display: none;
  }

  .hp-single__title {
    font-size: 1.5rem;
    border-bottom-width: 1px;
  }

  .hp-entry-content a {
    color: var(--hp-text);
    text-decoration: none;
  }

  .hp-entry-content a::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: var(--hp-text-muted);
  }
}

/* ============================================
   FINAL POLISH OVERRIDES
   ============================================ */
/* --- Simplified care hero (eyebrow + h1 + nav only) --- */
.hp-page-hero--care-simple {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(13, 50, 85, 0.1);
}

.hp-page-hero--care-simple .hp-page-hero__eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #2D8C46;
}

.hp-page-hero--care-simple .hp-page-hero__actions {
  margin-top: 14px;
}

.hp-care-showcase {
  margin-top: 40px;
  margin-bottom: 32px;
  overflow: hidden;
}

.hp-care-showcase__heading {
  margin: 0 0 18px;
  font-size: 1.3rem;
  color: #002745;
}

.hp-care-showcase__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.hp-care-showcase__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(10, 37, 58, 0.08);
  width: 100%;
}

.hp-care-showcase__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: 280px;
  object-fit: cover;
}

.hp-care-showcase__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
  width: 100%;
  overflow: hidden;
}

.hp-care-showcase__feature {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(13, 50, 85, 0.08);
  box-shadow: 0 18px 36px rgba(10, 37, 58, 0.08);
  min-width: 0;
  word-break: break-word;
}

.hp-care-showcase__feature-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hp-care-showcase__feature-body {
  padding: 22px 20px 20px;
  min-width: 0;
}

.hp-care-showcase__feature-title {
  margin: 0 0 10px;
  font-size: 1.18rem;
  color: #113654;
  overflow-wrap: break-word;
}

.hp-care-showcase__feature-text {
  margin: 0;
  line-height: 1.9;
  color: #5c7080;
  overflow-wrap: break-word;
}

.hp-page-docs {
  margin-top: 28px;
  padding: 24px;
  border-radius: 28px;
  background: #f7fbf8;
  border: 1px solid rgba(45, 140, 70, 0.12);
}

.hp-page-docs__header {
  margin-bottom: 16px;
}

.hp-page-docs__eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #2f8b49;
}

.hp-page-docs__title {
  margin: 0;
  font-size: 1.35rem;
  color: #113654;
}

.hp-page-docs__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hp-page-docs__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  text-decoration: none;
  border: 1px solid rgba(45, 140, 70, 0.12);
  color: #12344e;
}

.hp-page-docs__item-title {
  font-weight: 700;
}

.hp-page-docs__item-meta {
  font-size: 13px;
  color: #2f8b49;
}

.hp-single__hero-inner {
  padding: clamp(26px, 4vw, 40px);
  border-radius: 32px;
  background: linear-gradient(135deg, #ffffff 0%, #f9fcfa 100%);
  border: 1px solid rgba(13, 50, 85, 0.08);
  box-shadow: 0 18px 40px rgba(10, 37, 58, 0.08);
}

.hp-single__title {
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.hp-single__thumbnail-img {
  border-radius: 32px;
  box-shadow: 0 18px 40px rgba(10, 37, 58, 0.08);
}

.hp-single__content-panel {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 32px;
  background: #fff;
  border: 1px solid rgba(13, 50, 85, 0.08);
  box-shadow: 0 18px 40px rgba(10, 37, 58, 0.08);
}

.hp-entry-content {
  font-size: 16px;
  line-height: 2;
  color: #31495a;
}

.hp-entry-content p,
.hp-entry-content ul,
.hp-entry-content ol {
  line-height: 2;
}

.hp-entry-content h2,
.hp-entry-content h3,
.hp-entry-content h4 {
  color: #113654;
  line-height: 1.5;
}

.hp-entry-content img {
  border-radius: 12px;
}

/* WordPress float images (alignleft/alignright) */
.hp-entry-content .alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
  max-width: 200px;
}

.hp-entry-content .alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 200px;
}

.hp-entry-content .aligncenter {
  display: block;
  margin: 1rem auto;
}

/* Clear floats after doctor/staff sections */
.hp-entry-content::after {
  content: "";
  display: table;
  clear: both;
}

/* WordPress tables in content */
.hp-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.hp-entry-content table th,
.hp-entry-content table td {
  padding: 10px 14px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.hp-entry-content table th {
  background: #f7f7f7;
  font-weight: 600;
}

@media (max-width: 767px) {
  .hp-entry-content .alignleft,
  .hp-entry-content .alignright {
    float: none;
    display: block;
    margin: 1rem auto;
    max-width: 160px;
  }
}

.hp-single__author-card {
  border-radius: 32px;
  border: 1px solid rgba(13, 50, 85, 0.08);
  box-shadow: 0 18px 40px rgba(10, 37, 58, 0.08);
}

.hp-facility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 32px;
}

.hp-facility-card {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  text-decoration: none;
  border: 1px solid rgba(13, 50, 85, 0.08);
  box-shadow: 0 18px 36px rgba(10, 37, 58, 0.08);
  color: #113654;
}

.hp-facility-card__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hp-facility-card__eyebrow,
.hp-facility-card__title,
.hp-facility-card__lead,
.hp-facility-card__copy,
.hp-facility-card__cta {
  display: block;
  padding-left: 24px;
  padding-right: 24px;
}

.hp-facility-card__eyebrow {
  padding-top: 24px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #2f8b49;
}

.hp-facility-card__title {
  margin-bottom: 8px;
  font-size: 1.32rem;
  font-weight: 700;
}

.hp-facility-card__lead {
  margin-bottom: 10px;
  color: #2f8b49;
  font-weight: 700;
}

.hp-facility-card__copy {
  padding-bottom: 18px;
  line-height: 1.9;
  color: #5c7080;
}

.hp-facility-card__cta {
  padding-bottom: 24px;
  font-weight: 700;
}

.hp-sitemap-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.hp-sitemap-page__section {
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(13, 50, 85, 0.08);
  box-shadow: 0 18px 36px rgba(10, 37, 58, 0.08);
}

.hp-sitemap-page__title {
  margin: 0 0 16px;
  color: #113654;
}

.hp-sitemap-page__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hp-sitemap-page__item a {
  color: #43606f;
  text-decoration: none;
}

.hp-sitemap-page__item a:hover {
  color: #2f8b49;
}

.author_profile_box,
.wp-block-hannya-blocks-author-info {
  display: none !important;
}

.hp-legacy-accordion {
  margin: 1.8rem 0;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(246, 250, 247, 0.96) 0%, rgba(255, 255, 255, 0.99) 100%);
  border: 1px solid rgba(45, 125, 106, 0.12);
  box-shadow: 0 14px 28px rgba(10, 29, 49, 0.05);
}

.hp-legacy-accordion__summary {
  position: relative;
  display: block;
  padding: 1.1rem 3.4rem 1.1rem 1.35rem;
  color: var(--hp-dark);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.hp-legacy-accordion__summary::-webkit-details-marker {
  display: none;
}

.hp-legacy-accordion__summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  color: var(--hp-primary);
  font-size: 1.55rem;
  line-height: 1;
}

.hp-legacy-accordion[open] .hp-legacy-accordion__summary::after {
  content: "−";
}

.hp-legacy-accordion__body {
  padding: 0 1.35rem 1.35rem;
  color: var(--hp-text-light);
  line-height: 1.95;
}

.hp-legacy-accordion__body > :first-child {
  margin-top: 0;
}

.hp-legacy-accordion__body > :last-child {
  margin-bottom: 0;
}

.js-accordion_title {
  position: relative;
  display: block;
  width: 100%;
  padding: 18px 56px 18px 20px;
  border-radius: 18px;
  background: #f7fbf8;
  color: #113654;
  font-weight: 700;
  cursor: pointer;
}

.js-accordion_title::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  color: #2f8b49;
}

.js-accordion_title.accordion_opened::after {
  content: "−";
}

.js-accordion_content {
  display: none;
  padding: 18px 4px 0;
}

@media (max-width: 899px) {
  .hp-care-showcase__features,
  .hp-page-docs__list,
  .hp-facility-grid,
  .hp-sitemap-page__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hp-care-showcase__gallery {
    grid-template-columns: 1fr;
  }

  .hp-single__hero-inner,
  .hp-single__content-panel,
  .hp-single__author-card {
    border-radius: 26px;
  }
}

/* ============================================
   FINAL PAGE / ARTICLE REFINEMENTS
   ============================================ */
.hp-page-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.hp-page-hero__chips li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(45, 125, 106, 0.08);
  color: #2D7D6A;
  font-size: 0.78rem;
  font-weight: 700;
}

.hp-page-related {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.hp-page-related__head {
  display: grid;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.hp-page-related__eyebrow {
  color: var(--hp-primary);
  font-size: var(--hp-font-size-xs);
  font-weight: var(--hp-font-weight-bold);
  letter-spacing: 0.14em;
}

.hp-page-related__title {
  margin: 0;
  color: var(--hp-dark);
  font-family: var(--hp-font-heading);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.hp-medical-guide__section + .hp-medical-guide__section {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.hp-medical-guide__grid,
.hp-medical-guide__support-grid {
  display: grid;
  gap: 18px;
}

.hp-medical-guide__card,
.hp-medical-guide__support-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(1.4rem, 2.8vw, 2rem);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 248, 246, 0.98) 100%);
  border: 1px solid rgba(26, 58, 74, 0.08);
  box-shadow: 0 18px 36px rgba(10, 29, 49, 0.06);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hp-medical-guide__card:hover,
.hp-medical-guide__support-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 42px rgba(10, 29, 49, 0.1);
  border-color: rgba(45, 125, 106, 0.18);
}

.hp-medical-guide__card-eyebrow {
  color: var(--hp-primary);
  font-size: var(--hp-font-size-xs);
  font-weight: var(--hp-font-weight-bold);
  letter-spacing: 0.14em;
}

.hp-medical-guide__card-title,
.hp-medical-guide__support-title {
  margin: 0;
  color: var(--hp-dark);
  font-family: var(--hp-font-heading);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.5;
}

.hp-medical-guide__card-text,
.hp-medical-guide__support-text {
  color: var(--hp-text-light);
  line-height: 1.9;
}

.hp-medical-guide__card-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-medical-guide__card-keywords li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(26, 58, 74, 0.06);
  color: #1A3A4A;
  font-size: 0.75rem;
  font-weight: 700;
}

.hp-medical-guide__card-cta {
  margin-top: auto;
  color: var(--hp-primary);
  font-weight: 700;
}

.hp-medical-guide__support-card.is-beauty {
  background: linear-gradient(145deg, rgba(255, 244, 248, 0.98) 0%, rgba(255, 255, 255, 0.99) 100%);
  border-color: rgba(232, 91, 138, 0.16);
}

.hp-care-showcase__intro {
  margin-bottom: 18px;
}

.hp-care-showcase__lead {
  margin: 0;
  max-width: 58rem;
  color: #5c7080;
  line-height: 1.95;
}

.hp-care-showcase__feature-image:empty {
  display: none;
}

.hp-care-showcase__feature.is-text-only .hp-care-showcase__feature-body {
  padding-top: 24px;
}

.hp-facility-card__thumb {
  overflow: hidden;
  margin: calc(-1 * clamp(1.3rem, 2.6vw, 2rem));
  margin-bottom: 0.65rem;
  border-radius: 28px 28px 0 0;
  aspect-ratio: 16 / 10;
  background: #eef4f2;
}

.hp-facility-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-facility-card__vacancy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.hp-facility-card__vacancy.is-available,
.hp-facility-card__vacancy.is-recruiting {
  background: rgba(45, 125, 106, 0.12);
  color: #2D7D6A;
}

.hp-facility-card__vacancy.is-few,
.hp-facility-card__vacancy.is-limited {
  background: rgba(232, 113, 42, 0.14);
  color: #B55A1F;
}

.hp-facility-card__vacancy.is-full {
  background: rgba(220, 53, 69, 0.12);
  color: #B02C3A;
}

.hp-facility-vacancy-link {
  text-align: center;
  margin: 48px 0;
  padding: 32px 24px;
  background: var(--hp-bg-light, #EEF8F8);
  border-radius: 12px;
}

.hp-facility-vacancy-link p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--hp-text, #444);
}

.hp-entry-content .alignleft,
.hp-entry-content .alignright {
  max-width: min(240px, 42%);
}

/* Gallery captions: small centered text (reference site style) */
.hp-entry-content .wp-block-gallery figcaption,
.hp-entry-content .blocks-gallery-grid figcaption {
  display: block;
  writing-mode: horizontal-tb;
  text-align: center;
  font-size: 12px;
  color: #666;
  padding: 6px 4px 0;
}

/* Non-gallery figcaptions: fix writing-mode bug */
.hp-entry-content .wp-block-image figcaption,
.hp-entry-content figcaption:not(.blocks-gallery-caption),
.hp-entry-content .wp-caption-text {
  display: block;
  width: 100%;
  min-width: 0;
  writing-mode: horizontal-tb;
  white-space: normal;
  letter-spacing: 0.02em;
  text-align: center;
}

.hp-single__cta-panel {
  display: grid;
  gap: 0.95rem;
  padding: clamp(1.7rem, 3.8vw, 2.6rem);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 248, 242, 0.96) 0%, rgba(255, 255, 255, 0.99) 50%, rgba(243, 249, 245, 0.98) 100%);
  border: 1px solid rgba(232, 113, 42, 0.16);
  box-shadow: 0 24px 48px rgba(10, 29, 49, 0.08);
}

.hp-single__cta-kicker {
  margin: 0;
  color: var(--hp-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hp-single__cta-title {
  margin: 0;
  color: var(--hp-dark);
  font-family: var(--hp-font-heading);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.45;
}

.hp-single__cta-text {
  margin: 0;
  color: var(--hp-text-light);
  line-height: 1.9;
}

.hp-single__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hp-single__cta-actions .hp-btn--primary {
  background: linear-gradient(135deg, #2d7d6a 0%, #3f9a7f 100%);
  box-shadow: 0 14px 28px rgba(45, 125, 106, 0.22);
}

.hp-single__cta-actions .hp-btn--accent {
  background: linear-gradient(135deg, #e8712a 0%, #f08f46 100%);
  box-shadow: 0 14px 28px rgba(232, 113, 42, 0.24);
}

.hp-single__cta-actions .hp-btn--beauty {
  box-shadow: 0 14px 28px rgba(232, 91, 138, 0.24);
}

.hp-single__cta-actions .hp-btn--outline {
  background: linear-gradient(135deg, #173246 0%, #25536d 100%);
  color: #ffffff;
  border-color: rgba(23, 50, 70, 0.16);
}

.hp-single__cta-actions .hp-btn--outline:hover {
  background: linear-gradient(135deg, #1d425a 0%, #2f6485 100%);
  color: #ffffff;
  border-color: rgba(23, 50, 70, 0.16);
}

.hp-single__cta-actions .hp-btn--contact {
  background: linear-gradient(135deg, #173246 0%, #25536d 100%);
  box-shadow: 0 14px 28px rgba(23, 50, 70, 0.24);
}

.hp-facility-guides {
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
}

.hp-facility-guides__grid {
  display: grid;
  gap: 20px;
}

.hp-facility-guides__card {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1.35rem, 2.8vw, 1.9rem);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 248, 246, 0.98) 100%);
  border: 1px solid rgba(26, 58, 74, 0.08);
  box-shadow: 0 18px 36px rgba(10, 29, 49, 0.06);
}

.hp-facility-guides__eyebrow {
  color: var(--hp-primary);
  font-size: var(--hp-font-size-xs);
  font-weight: var(--hp-font-weight-bold);
  letter-spacing: 0.14em;
}

.hp-facility-guides__title {
  margin: 0;
  color: var(--hp-dark);
  font-family: var(--hp-font-heading);
  font-size: clamp(1.18rem, 1.9vw, 1.5rem);
}

.hp-facility-guides__text,
.hp-facility-guides__qa {
  margin: 0;
  color: var(--hp-text-light);
  line-height: 1.9;
}

.hp-facility-guides__qa {
  padding-left: 1.25rem;
}

.hp-facility-guides__qa li + li {
  margin-top: 0.5rem;
}

.hp-facility-guides__link {
  color: var(--hp-primary);
  font-weight: 700;
  text-decoration: none;
}

.hp-facility-guides__link:hover {
  color: var(--hp-dark);
}

@media (min-width: 768px) {
  .hp-entry-content .wp-block-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-care-detail-hero {
    padding: clamp(2rem, 5vw, 3rem) clamp(2rem, 4vw, 3rem);
  }

  .hp-medical-guide__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-medical-guide__support-grid,
  .hp-page-related__cards,
  .hp-facility-guides__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hp-entry-content .wp-block-gallery,
  .hp-entry-content .wp-block-gallery.has-nested-images,
  .hp-entry-content .blocks-gallery-grid,
  .hp-entry-content .wp-block-columns,
  .hp-entry-content .wp-block-media-text {
    grid-template-columns: 1fr;
  }

  .hp-care-detail-hero {
    border-radius: 22px;
    padding: 1.5rem 1.25rem;
  }

  .hp-care-detail-hero__stats {
    gap: 8px;
  }

  .hp-care-detail-hero__actions,
  .hp-single__cta-actions {
    flex-direction: column;
  }

  .hp-care-detail-hero__actions > a,
  .hp-single__cta-actions > a {
    width: 100%;
  }

  .hp-page-hero__chips,
  .hp-medical-guide__card-keywords {
    justify-content: flex-start;
  }

  .hp-page-docs__item {
    align-items: flex-start;
  }

  .hp-entry-content .alignleft,
  .hp-entry-content .alignright {
    float: none;
    display: block;
    margin: 1.25rem auto;
    max-width: 100%;
  }
}

/* ============================
   CARE PAGE: Suppress hero-like images at top of post content
   The care detail hero is text-only; inline images at the start of
   the_content that act as "hero photos" are hidden.
   ============================ */
.hp-page__content--care > .wp-block-image:first-child,
.hp-page__content--care > figure:first-child,
.hp-page__content--care > p:first-child > img:only-child {
  display: none;
}

/* ============================
   WORDPRESS PDF / FILE DOWNLOAD BLOCKS
   Consistent styling for .wp-block-file elements
   within entry content and care pages.
   ============================ */
.hp-entry-content .wp-block-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: var(--hp-space-md) 0;
  padding: 18px 22px;
  border-radius: 20px;
  background: #f7fbf8;
  border: 1px solid rgba(45, 140, 70, 0.12);
  transition: border-color var(--hp-transition-fast), box-shadow var(--hp-transition-fast);
}

.hp-entry-content .wp-block-file:hover {
  border-color: rgba(45, 140, 70, 0.28);
  box-shadow: 0 6px 18px rgba(10, 29, 49, 0.06);
}

.hp-entry-content .wp-block-file a:first-child {
  flex: 1 1 0%;
  min-width: 0;
  font-weight: 700;
  color: var(--hp-dark, #002745);
  text-decoration: none;
  overflow-wrap: break-word;
}

.hp-entry-content .wp-block-file a:first-child:hover {
  color: var(--hp-primary, #2D8C46);
}

.hp-entry-content .wp-block-file .wp-block-file__button,
.hp-entry-content .wp-block-file a[download] {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--hp-primary, #2D8C46);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--hp-transition-fast);
}

.hp-entry-content .wp-block-file .wp-block-file__button:hover,
.hp-entry-content .wp-block-file a[download]:hover {
  background: var(--hp-primary-dark, #1f6e34);
}

/* Care page: group file blocks visually as a "related documents" cluster */
.hp-page__content--care .wp-block-file {
  background: #f5f9f6;
  border-color: rgba(45, 140, 70, 0.15);
}

.hp-page__content--care .wp-block-file + .wp-block-file {
  margin-top: -1px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.hp-page__content--care .wp-block-file:has(+ .wp-block-file) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* ============================
   CARE PAGE: Ensure showcase + container no horizontal overflow
   ============================ */
.hp-page--care .hp-container--narrow {
  overflow-x: hidden;
}

@media (max-width: 899px) {
  .hp-care-showcase__features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hp-care-showcase__gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hp-care-showcase__figure img {
    aspect-ratio: 16 / 9;
  }

  .hp-entry-content .wp-block-file {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
  }

  .hp-entry-content .wp-block-file .wp-block-file__button,
  .hp-entry-content .wp-block-file a[download] {
    width: 100%;
    justify-content: center;
  }
}
