.health-page {
    --health-gutter: clamp(7px, 1.7cqw, 12px);
    --health-gap: clamp(5px, 1.35cqw, 10px);
    background: linear-gradient(#eaf4fe, #f4f9fd 36%, #f6faff);
    color: #0b1247;
}

.health-page .page-header { background: linear-gradient(105deg, #f4f9ff, #eaf4fe 58%, #ddecfc); }
.health-page main { padding-bottom: max(88px, calc(189 * var(--u) + env(safe-area-inset-bottom))); }

.health-art {
    display: block;
    flex: none;
    aspect-ratio: var(--art-ratio);
    background-image: url('../img/kesehatan-ilustrasi.webp');
    background-repeat: no-repeat;
    background-size: var(--art-w) var(--art-h);
    background-position: var(--art-x) var(--art-y);
}

.health-hero-art {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 4%;
    width: 48%;
    mask-image: linear-gradient(90deg, transparent, #000 15%), linear-gradient(#0000, #000 14%);
    mask-composite: intersect;
}

.health-hero-badge {
    width: 100%;
    border-radius: 27%;
    box-shadow: 0 5px 11px #0033754a;
}


.health-sections { display: grid; gap: clamp(8px, 1.85cqw, 14px); margin: clamp(9px, 2cqw, 15px) var(--health-gutter) 0; }

.health-panel {
    min-width: 0;
    padding: clamp(6px, 1.65cqw, 12px);
    border: 1px solid #ffffffdb;
    border-radius: clamp(15px, 3.75cqw, 27px);
    background: linear-gradient(153deg, #fbfdff, #f4f9ff);
    box-shadow: 0 2px 7px #2868b326, inset 0 -1px #cfe4fa;
}

.health-panel:has([data-search-item]):not(:has([data-search-item]:not([hidden]))) { display: none; }
.health-empty { margin-inline: var(--health-gutter); }

.health-heading {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1.65cqw, 12px);
    min-height: clamp(28px, 6.7cqw, 47px);
    margin-bottom: var(--health-gap);
}

.health-heading .health-art { width: clamp(20px, 6.2cqw, 41px); }

.health-heading h2 {
    font-size: var(--type-section);
    font-weight: var(--weight-section);
    letter-spacing: var(--tracking-heading);
    line-height: 1.12;
}

.health-heading a {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: .24em;
    min-height: 33px;
    margin-left: auto;
    color: #004cfa;
    font-size: var(--type-action);
    font-weight: var(--weight-bold);
    white-space: nowrap;
}

.health-heading a span, .health-banner a span { font-size: 1.32em; line-height: .8; }
.health-services, .health-facilities, .health-news { display: grid; gap: var(--health-gap); }
.health-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.health-facilities { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.health-news { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.health-blue { --health-tone: #d9edfd; --health-edge: #cee6fb; }
.health-lilac { --health-tone: #ebe5fb; --health-edge: #e7ddfb; }
.health-mint { --health-tone: #dbf4eb; --health-edge: #d2efe3; }
.health-rose { --health-tone: #fae9f1; --health-edge: #f4d7e3; }
.health-pink { --health-tone: #f9e1f1; --health-edge: #f5dcea; }
.health-cream { --health-tone: #fdf0d9; --health-edge: #f9ead2; }
.health-aqua { --health-tone: #d7f5fb; --health-edge: #d1eff8; }

.health-service, .health-facility, .health-news-card {
    min-width: 0;
    border: 1px solid var(--health-edge);
    border-radius: clamp(11px, 3.2cqw, 24px);
    background: linear-gradient(142deg, #fff9, transparent 77%), var(--health-tone);
    color: #0b1247;
    box-shadow: 0 2px 4px #2e568513;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.health-service, .health-facility {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.health-service {
    justify-content: center;
    min-height: clamp(82px, 22cqw, 149px);
    padding: clamp(4px, 1.4cqw, 10px);
    font-size: var(--type-card);
    line-height: 1.12;
}

.health-service strong, .health-facility strong, .health-news-card strong { font-weight: var(--weight-card); }
.health-service-icon { width: clamp(43px, 11.6cqw, 75px); margin-bottom: clamp(1px, .45cqw, 4px); }
.health-service .health-subtitle { margin-top: .15em; }

.health-phone {
    margin-top: .23em;
    padding: .22em .72em;
    border-radius: 999px;
    background: #e91e32;
    color: #fff;
    font-size: var(--type-teaser);
    font-weight: var(--weight-card);
}

.health-facility {
    justify-content: flex-start;
    padding: clamp(4px, 1.3cqw, 9px) 1px;
    font-size: var(--type-tile-small);
    line-height: 1.12;
}

.health-facility-icon { width: min(80%, 9.1cqw); height: clamp(24px, 7.5cqw, 50px); margin-bottom: .3em; }
.health-facility > span:last-child { padding-top: .25em; color: #293b65; font-size: var(--type-caption); }

.health-art:is(.health-service-icon, .health-facility-icon, .health-news-art) {
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 7%, #000 92%, transparent);
    mask-composite: intersect;
}

.health-banner {
    display: grid;
    grid-template-columns: 23% minmax(0, 1fr) auto;
    align-items: center;
    gap: 1cqw;
    min-height: clamp(60px, 16cqw, 105px);
    padding: 2px clamp(5px, 1.4cqw, 11px) 2px 0;
    overflow: hidden;
    border: clamp(3px, .8cqw, 6px) solid #f4f9ff;
    border-radius: clamp(15px, 3.7cqw, 26px);
    background: linear-gradient(100deg, #e7f7ff, #d5edfe);
    box-shadow: 0 3px 7px #2868b326;
}

.health-banner-art { width: 100%; mask-image: linear-gradient(90deg, #000 81%, transparent); }
.health-banner-copy h2 { font-size: var(--type-card); line-height: 1.12; letter-spacing: var(--tracking-heading); }
.health-banner-copy p { margin-top: .25em; font-size: var(--type-caption); line-height: 1.2; }

.health-banner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .24em;
    min-height: clamp(28px, 5.9cqw, 41px);
    padding: .35em .65em;
    border: 2px solid #fff;
    border-radius: 999px;
    background: linear-gradient(#0985ff, #004ef3);
    box-shadow: 0 2px 5px #0674c461;
    color: #fff;
    font-size: var(--type-action);
    font-weight: var(--weight-bold);
    white-space: nowrap;
}

.health-news-card {
    display: grid;
    grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
    align-items: center;
    gap: .38cqw;
    min-height: clamp(46px, 12.3cqw, 82px);
    padding: 2px clamp(3px, .9cqw, 7px);
    font-size: var(--type-tile);
    line-height: 1.12;
    text-align: left;
}

.health-news-art { width: 100%; }
.health-news-card.health-rose strong { color: #a70e21; }
.health-news-card.health-mint strong { color: #075522; }

@media (hover: hover) {
    :is(.health-service, .health-facility, .health-news-card):hover { transform: translateY(-2px); box-shadow: 0 5px 10px #2e568526; }
    .health-heading a:hover { text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
    .health-service, .health-facility, .health-news-card { transition: none; }
    :is(.health-service, .health-facility, .health-news-card):hover { transform: none; }
}
