.home-carousel .carousel-slide {height:auto; min-height:min(82svh,28rem); max-height:100%; overflow:auto}
.home-carousel .slide-caption{width:100%}
.carousel-card-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem;margin-top:.75rem}
.carousel-card-actions a,.carousel-card-actions span{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.45rem .7rem;border-radius:.6rem;background:#e7f0e9;color:#174333;font-size:.85rem;font-weight:700;text-decoration:none}
.carousel-card-actions a:hover,.carousel-card-actions a:focus-visible{background:#176047;color:white}
.carousel-card-actions span{background:#f1f4f2;color:#4b6256}
.home-carousel .carousel-slide:not([data-active]) .carousel-card-actions{visibility:hidden}
@media(max-height:560px){.home-carousel .slide-frame{width:min(27vw,24svh,7rem)}}
@media(max-height:320px){.home-carousel .slide-frame{display:none}}

/* Side previews show the photo and caption. */
.home-carousel .carousel-slide:not([data-active]) .carousel-card-actions {display:none}
.home-carousel .carousel-slide:not([data-active]) {opacity:.76;pointer-events:none}
.home-carousel .carousel-slide {width:var(--carousel-card-width,min(76vw,23rem))}

.home-carousel .carousel-slide {transform:translate(-50%,-50%) translateX(var(--card-shift,0px)) perspective(950px) rotateY(var(--preview-tilt,0deg)) scale(var(--card-scale,1))}
.home-carousel .carousel-slide[data-active]{box-shadow:0 3px 0 #d8e2da,0 6px 0 #c5d6ca,0 15px 30px #172e2526}



@media (prefers-reduced-motion:no-preference){.home-carousel .carousel-slide{transition:transform .62s cubic-bezier(.2,.75,.25,1),opacity .44s ease,filter .44s ease,box-shadow .55s ease}.home-carousel .carousel-track.is-dragging .carousel-slide,.home-carousel .carousel-slide[data-wrap]{transition:none}}

.home-carousel .carousel-track.is-settling .carousel-slide{transition-property:opacity,filter,box-shadow}

@media (max-height:240px){.home-carousel .carousel-slide{padding-block:.35rem;justify-content:safe center}.home-carousel .slide-caption,.home-carousel .carousel-slide[data-active] .slide-caption{padding-top:0}.carousel-card-actions{margin-top:.4rem}}

body:has(.home-carousel){background-color:#f7f9fc;color:#0047ab}.home-carousel .slide-caption,.home-carousel .slide-caption h2,.home-carousel .slide-caption p,.home-carousel .slide-caption p:first-child,.home-carousel .carousel-card-actions span{color:#0047ab}.home-carousel .carousel-card-actions a,.home-carousel .carousel-card-actions a:hover,.home-carousel .carousel-card-actions a:focus-visible,.home-carousel .carousel-next,.home-carousel .carousel-next:hover,.home-carousel .carousel-next:focus-visible{background-color:#ffda44;color:#000000}

/* Layanan Kampong visual treatment */
.home-carousel { --service-cobalt: #0047ab; --service-line: #0047ab20; }
.home-carousel .carousel-slide { border-radius: 1.5rem; border-color: var(--service-line); box-shadow: 0 4px 16px #0047ab0a; }
.home-carousel .carousel-slide[data-active] { border-color: #0047ab36; box-shadow: 0 12px 36px #0047ab14; }
.home-carousel .slide-frame, .home-carousel .carousel-slide[data-active] .slide-frame { width: min(30vw, 7rem, 23svh); border: 1px solid var(--service-line); border-radius: 1.25rem; box-shadow: none; }
.home-carousel .slide-caption p:first-child { font-size: .75rem; font-weight: 650; letter-spacing: .08em; }
.home-carousel .slide-caption h2 { margin-block: .4rem; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.12; }
.home-carousel .slide-caption p:last-of-type { max-inline-size: 28ch; margin-inline: auto; font-size: clamp(.875rem, 2vw, 1rem); line-height: 1.45; }
.home-carousel .carousel-card-actions { gap: .5rem; margin-top: clamp(.5rem, 2svh, 1rem); }
.home-carousel .carousel-card-actions a, .home-carousel .carousel-card-actions span { padding-inline: .875rem; border: 1px solid var(--service-line); border-radius: .65rem; }
.home-carousel .carousel-card-actions span { background-color: #f7f9fc; }
.home-carousel .carousel-next { border-color: var(--service-line); box-shadow: 0 2px 8px #0047ab14; }
.home-carousel .carousel-track:focus-visible, .home-carousel .carousel-card-actions a:focus-visible, .home-carousel .carousel-next:focus-visible { outline: 2px solid var(--service-cobalt); outline-offset: 2px; }
.home-carousel .carousel-track:focus-visible { outline-offset: -3px; }

/* Layanan Kampong device layouts */ @media (width < 769px) { .home-carousel .carousel-track { cursor: auto; } .home-carousel .carousel-slide:not(#slide-warga), .home-carousel .carousel-next { display: none; } .home-carousel #slide-warga { width: min(calc(100% - 2rem), 25rem); z-index: auto !important; transform: translate(-50%, -50%); filter: none; opacity: 1; pointer-events: auto; } .home-carousel #slide-warga .carousel-card-actions { display: grid; visibility: visible; grid-template-columns: minmax(0, 1fr); max-width: 17rem; margin-inline: auto; } } @media (769px <= width < 1024px) and (min-height: 450px) { .home-carousel .carousel-slide { width: min(61vw, 33rem); min-height: min(72svh, 19rem); flex-direction: row; gap: clamp(1rem, 3vw, 2rem); } .home-carousel .carousel-slide .slide-caption, .home-carousel .carousel-slide[data-active] .slide-caption { padding-block-start: 0; text-align: start; } .home-carousel .slide-caption p:last-of-type { margin-inline: 0; } .home-carousel .carousel-card-actions { justify-content: flex-start; } }
