/* Patient Experience: uses the health library hero, section heads, cards and closing panel from health-library.css. */
.px-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.px-band { background: #f6f9fd; }
.px-icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--kih-blue); color: #fff; font-size: 1.3rem; }
.px-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--kih-red); font-size: .85rem; font-weight: 600; text-decoration: none; }
.px-link:hover { color: var(--kih-red-dark); text-decoration: underline; text-underline-offset: 3px; }

/* Our promise */
.px-promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
/* Icon and title share the top row; text and link span the card below. */
.px-promise { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: center; column-gap: .85rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg, #fff 0%, #f4f8fd 100%); }
.px-promise h3 { margin: 0; color: var(--ink); font-size: 1.15rem; font-weight: 600; }
.px-promise p { grid-column: 1 / -1; }
.dc-page .px-promise p { display: flow-root; align-self: start; margin: 1rem 0 0; color: #3a5068; font-size: .9rem; line-height: 1.7; }
/* The link sits at the right end of the last text line (smaller so it fits); without room it moves to the next line, still on the right. */
.px-promise .px-link-end { float: right; gap: .3rem; font-size: .78rem; line-height: inherit; white-space: nowrap; }

/* Care journey: numbered stages joined by a line on desktop */
.px-journey { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.px-step { position: relative; display: flex; flex-direction: column; padding: 1.6rem; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.px-step-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.px-step-number { color: #c9d7e8; font-size: 2.2rem; font-weight: 700; line-height: 1; }
.px-step h3 { flex: 1; margin: 0; color: var(--ink); font-size: 1.2rem; font-weight: 600; }
.dc-page .px-step p { margin-bottom: 1.1rem; color: #3a5068; font-size: .9rem; line-height: 1.7; }
.px-step-links { display: grid; gap: .5rem; margin: auto 0 0; padding: 1rem 0 0; border-top: 1px dashed var(--line); list-style: none; }
.px-step-links a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .8rem; border-radius: 10px; background: var(--kih-blue-soft); color: var(--kih-blue); font-size: .88rem; font-weight: 600; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.px-step-links a:hover { background: var(--kih-blue); color: #fff; }
@media (min-width: 992px) {
    .px-step:not(:last-child)::after { content: ""; position: absolute; top: 2.4rem; right: -1.25rem; width: 1.25rem; height: 2px; background: #c9d7e8; }
}

/* Services: icon and title share the top row; text and link span the card below. */
.px-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.px-service { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-items: center; column-gap: .85rem; }
.px-service .hl-icon { margin-bottom: 0; }
.px-service h4 { margin: 0; }
.px-service .dc-desc, .px-service .dc-card-go { grid-column: 1 / -1; }
.dc-page .px-service .dc-desc { align-self: start; margin: .9rem 0; }
.px-service .dc-card-go { justify-self: end; }

/* Same look as the home page "view all" buttons (home-style.css is only loaded on the home page). */
.px-view-all { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; height: 35px; padding: 0 16px; border: 1px solid #c9d9eb; border-radius: 9px; background: rgba(255, 255, 255, .72); color: var(--kih-blue); font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; transition: color .22s ease, background-color .22s ease, border-color .22s ease, transform .22s ease; }
.px-view-all i { font-size: 1rem; transition: transform .22s ease; }
.px-view-all:hover { border-color: var(--kih-blue); background: var(--kih-blue); color: #fff; transform: translateY(-2px); }
.px-view-all:hover i { transform: translateX(3px); }

/* Patient stories */
.px-stories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.px-story { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.px-story-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #031e3c; }
.px-story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.px-story-media:hover img { transform: scale(1.04); }
.px-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--kih-red); color: #fff; font-size: 1.8rem; box-shadow: 0 10px 24px rgba(3, 30, 60, .35); transform: translate(-50%, -50%); }
.px-play .bi { margin-left: 3px; }
.px-story-body { display: flex; flex: 1; flex-direction: column; padding: 1.2rem 1.3rem 1.3rem; }
.px-story-body h3, .px-story-body h2 { margin-bottom: .25rem; color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.dc-page .px-story-body p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }

/* Patient Testimonials page reuses the story cards; its page title matches the section headings. */
.ts-page h1 { margin-bottom: .35rem; color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; line-height: 1.2; }

.px-page a:focus-visible, .ts-page a:focus-visible { outline: 2px solid var(--kih-blue); outline-offset: 3px; }
.px-page .dc-hero a:focus-visible { outline-color: #fff; }

@media (max-width: 1199.98px) {
    .px-promises, .px-services, .px-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .px-journey { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .px-promises, .px-services, .px-stories { grid-template-columns: 1fr; }
    .px-hero-actions .dc-btn { min-height: 42px; padding: .55rem 1.1rem; font-size: .85rem; }
    .px-view-all { padding: 0 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .px-step-links a, .px-story-media img, .px-view-all, .px-view-all i { transition: none; }
    .px-story-media:hover img { transform: none; }
}
